Ignore:
Timestamp:
Jun 4, 2010, 3:11:43 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: merged changes from 3.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/passdb/pdb_smbpasswd.c

    r414 r454  
    277277                         */
    278278
     279#ifndef __OS2__
    279280                        if (sys_stat(pfile, &sbuf1, false) != 0) {
    280281                                DEBUG(0, ("startsmbfilepwent_internal: unable to stat file %s. \
     
    294295
    295296                        if( sbuf1.st_ex_ino == sbuf2.st_ex_ino) {
     297#else
    296298                                /* No race. */
     299                        {
     300#endif
    297301                                break;
    298302                        }
     
    315319        setvbuf(fp, (char *)NULL, _IOFBF, 1024);
    316320
     321#ifndef __OS2__
    317322        /* Make sure it is only rw by the owner */
    318323#ifdef HAVE_FCHMOD
     
    327332                return NULL;
    328333        }
     334#endif
    329335
    330336        /* We have a lock on the file. */
     
    11681174         * Do an atomic rename - then release the locks.
    11691175         */
     1176#ifdef __OS2__
     1177        endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
     1178        endsmbfilepwent(fp_write,&pfile2_lockdepth);
     1179#endif
    11701180
    11711181        if(rename(pfile2,pfile) != 0) {
     
    11731183        }
    11741184
     1185#ifndef __OS2__
    11751186        endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
    11761187        endsmbfilepwent(fp_write,&pfile2_lockdepth);
     1188#endif
    11771189        return True;
    11781190}
Note: See TracChangeset for help on using the changeset viewer.