Commit 66be548b authored by Howard Chu's avatar Howard Chu
Browse files

ITS#5774 blind fix for Windows, please test

parent 93c75ea6
......@@ -336,7 +336,13 @@ spew_entry( Entry * e, struct berval * path, int dolock, int *save_errnop )
tmpfname, STRERROR( save_errno ), 0 );
} else {
#ifdef _WIN32
/* returns 0 on failure, nonzero on success */
res = MoveFileEx( tmpfname, path->bv_val,
MOVEFILE_REPLACE_EXISTING ) == 0;
#else
res = rename( tmpfname, path->bv_val );
#endif
if ( res == 0 ) {
rs = LDAP_SUCCESS;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment