I think I fixed the problem by moving the definition of Win32_rename() 
to the end of apps.c.  Please check tomorrow's 0.9.7 snapshot and come 
back to me with any feedback (even hoorays :-)).

[EMAIL PROTECTED] - Mon Mar 22 17:17:44 2004]:

> Re: openssl-dev thread: New CA index subfiles (.attr, .attr.new, .
attr.old,
> .new)
>  
> OpenSSL 0.9.7d introduces a bug on Windows in the openssl executable 
in
> relation to the renaming of temporary serial and index files.  The 
renames
> are failing since the special WIN32_rename() function (which removes 
the
> destination file before the rename) is not being used on Windows due 
to the
> rename macro being undefined before it is used.  I think the problem 
was
> introduced when the serial/index file handling code was tacked onto 
the end
> of apps.c.  With similar code in a separate module previously the 
undef was
> not having such an effect.  I've verified that redefining rename by 
copying
> line 140 of apps.h and inserting it after line 353 of apps.c fixes all 
of
> the problems with serial and index files that I was experiencing:
>  
> apps.c:352   #undef rename
> apps.c:353       return rename(from, to);
> apps.h:140   #define rename(from,to) WIN32_rename((from),(to))
>  
> Regards,
>  
> Steven
> 


-- 
Richard Levitte
[EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to