Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

Location:
branches/samba-3.0/source/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/lib/smbldap.c

    r44 r134  
    995995        }
    996996
    997         DEBUG(3, ("ldap_connect_system: succesful connection to the LDAP server\n"));
     997        DEBUG(3, ("ldap_connect_system: successful connection to the LDAP server\n"));
    998998        DEBUGADD(10, ("ldap_connect_system: LDAP server %s support paged results\n",
    999999                ldap_state->paged_results ? "does" : "does not"));
     
    10631063        ldap_state->last_ping = time(NULL);
    10641064        ldap_state->pid = sys_getpid();
    1065         DEBUG(4,("The LDAP server is succesfully connected\n"));
     1065        DEBUG(4,("The LDAP server is successfully connected\n"));
    10661066
    10671067        return LDAP_SUCCESS;
  • branches/samba-3.0/source/lib/util_str.c

    r124 r134  
    21432143 * @param ip_list pointer to array of ip addresses which is
    21442144 *        allocated by this function and must be freed by caller
    2145  * @return number of succesfully parsed addresses
     2145 * @return number of successfully parsed addresses
    21462146 **/
    21472147 
  • branches/samba-3.0/source/lib/util_tdb.c

    r105 r134  
    848848        switch (level) {
    849849        case TDB_DEBUG_FATAL:
    850                 debug_level = 0;
     850                debuglevel = 0;
    851851                break;
    852852        case TDB_DEBUG_ERROR:
  • branches/samba-3.0/source/lib/xfile.c

    r1 r134  
    4949int x_setvbuf(XFILE *f, char *buf, int mode, size_t size)
    5050{
    51         x_fflush(f);
     51        if (x_fflush(f) != 0) return -1;
    5252        if (f->bufused) return -1;
    5353
     
    152152
    153153        /* make sure we flush any buffered data */
    154         x_fflush(f);
     154        (void)x_fflush(f);
    155155
    156156        ret = close(f->fd);
     
    191191                if (n == 0) {
    192192                        /* it's full, flush it */
    193                         x_fflush(f);
     193                        if (x_fflush(f) != 0) {
     194                                return -1;
     195                        }
    194196                        continue;
    195197                }
     
    206208                for (i=(size*nmemb)-1; i>=0; i--) {
    207209                        if (*(i+(const char *)p) == '\n') {
    208                                 x_fflush(f);
     210                                if (x_fflush(f) != 0) {
     211                                        return -1;
     212                                }
    209213                                break;
    210214                        }
     
    255259        if (f->flags & X_FLAG_ERROR) return -1;
    256260
     261        if (f->bufused == 0 || !f->buf) return 0;
     262
    257263        if ((f->open_flags & O_ACCMODE) != O_WRONLY) {
    258264                errno = EINVAL;
    259265                return -1;
    260266        }
    261 
    262         if (f->bufused == 0 || !f->buf) return 0;
    263267
    264268        ret = write(f->fd, f->buf, f->bufused);
Note: See TracChangeset for help on using the changeset viewer.