httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10745] New: - in htpasswd, system fails to copy the temp file due to share violation
Date Fri, 12 Jul 2002 16:33:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10745>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10745

in htpasswd, system fails to copy the temp file due to share violation

           Summary: in htpasswd, system fails to copy the temp file due to
                    share violation
           Product: Apache httpd-2.0
           Version: 2.0.39
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: adrian.grajdeanu@sap.com


Observed in Win2K Pro. Fixed the code for the -c -n problem, as well as closing 
the unopened file.

I'm creating a new passwd file. Towards the end of the execution 'system' 
command is issued to copy the temp file over the target password file. This 
copy fails with sharing violation.

The process cannot access the file because it is being used by another process.
        0 file(s) copied.

I see that the temp file is created with FILE_FLAG_DELETE_ON_CLOSE. The doc for 
this flag mentiones: 'Subsequent open requests for the file will fail, unless 
FILE_SHARE_DELETE is used.'

The 'copy' command - I suppose - doesn't specify FILE_SHARE_DELETE and 
therefore fails.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message