httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: [apreq-2] $upload->tempname on Win32
Date Sat, 03 Jul 2004 19:57:43 GMT
Joe Schaefer <joe+gmane@sunstarsys.com> writes:

[...]

> Do you know which file in apr I should be looking at?

Never mind, I found it- the relevant files are 
apr/apr_file_io/unix/mktemp.c and apr/apr_file_io/win32/open.c.

According to msdn FILE_FLAG_DELETE_ON_CLOSE requires
FILE_SHARE_DELETE to permit reopening the file.  It looks
like that's being added at line 227 in open.c:

    if (apr_os_level >= APR_WIN_NT) 
        sharemode |= FILE_SHARE_DELETE;

Not sure if this conditional is being satisfied, you
might want to start by double-checking it.

-- 
Joe Schaefer


Mime
View raw message