[Date Prev][Date Next]
Re: (ITS#5774) Modifications not saved on file by back-ldif (on Windows)
> Full_Name: Emmanuel Duru
> Version: 2.4.11
> OS: Windows
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (126.96.36.199)
> On Windows, modifications are not saved on file by back-ldif.
> This is the case for example with cn=config.
> Reading back-ldif code I see that when modifying an entry, back-ldif creates a
> temporary file containing the modified entry, and then renames the temporary
> file to the entry file.
> On Windows, renaming a file to an already existing file does not work, it gets
> an ERROR_ALREADY_EXISTS error (183), error code which is ignored by back-ldif.
I guess we should be using #ifdef _WIN32 / ReplaceFile instead of rename() in
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/