[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5774) Modifications not saved on file by back-ldif (on Windows)

h.b.furuseth@usit.uio.no wrote:
> hyc@symas.com writes:
>> I guess we should be using #ifdef _WIN32 / ReplaceFile instead of
>> rename() in this case.
> Argh, why didn't that arrive before I wrote my reply?  I don't know
> Windows...
I don't think it's worth the effort to learn, really. But all of the Windows 
API documentation is on msdn.microsoft.com if you're inclined to read it.

MoveFileEx(old,new,MOVEFILE_REPLACE_EXISTING) would also be fine.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/