Changeset 454 for trunk/server/source3/passdb/pdb_smbpasswd.c
- Timestamp:
- Jun 4, 2010, 3:11:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/passdb/pdb_smbpasswd.c
r414 r454 277 277 */ 278 278 279 #ifndef __OS2__ 279 280 if (sys_stat(pfile, &sbuf1, false) != 0) { 280 281 DEBUG(0, ("startsmbfilepwent_internal: unable to stat file %s. \ … … 294 295 295 296 if( sbuf1.st_ex_ino == sbuf2.st_ex_ino) { 297 #else 296 298 /* No race. */ 299 { 300 #endif 297 301 break; 298 302 } … … 315 319 setvbuf(fp, (char *)NULL, _IOFBF, 1024); 316 320 321 #ifndef __OS2__ 317 322 /* Make sure it is only rw by the owner */ 318 323 #ifdef HAVE_FCHMOD … … 327 332 return NULL; 328 333 } 334 #endif 329 335 330 336 /* We have a lock on the file. */ … … 1168 1174 * Do an atomic rename - then release the locks. 1169 1175 */ 1176 #ifdef __OS2__ 1177 endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth); 1178 endsmbfilepwent(fp_write,&pfile2_lockdepth); 1179 #endif 1170 1180 1171 1181 if(rename(pfile2,pfile) != 0) { … … 1173 1183 } 1174 1184 1185 #ifndef __OS2__ 1175 1186 endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth); 1176 1187 endsmbfilepwent(fp_write,&pfile2_lockdepth); 1188 #endif 1177 1189 return True; 1178 1190 }
Note:
See TracChangeset
for help on using the changeset viewer.