diff options
| author | Pierre Joye <pajoye@php.net> | 2009-08-25 09:16:53 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2009-08-25 09:16:53 +0000 |
| commit | 056f0aea307ecd32020e5333d8a2f89222e68b6e (patch) | |
| tree | 93bbd6fa8772f040b52ac93471444ef72ab41ad0 /TSRM/tsrm_win32.c | |
| parent | 4c85f48c893ecefef79d1f8ca117a1abf04a5a50 (diff) | |
| download | php-git-056f0aea307ecd32020e5333d8a2f89222e68b6e.tar.gz | |
- fix #49047, touch may fail on directory
Diffstat (limited to 'TSRM/tsrm_win32.c')
| -rw-r--r-- | TSRM/tsrm_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 53cfa6175b..bfaac2e446 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -170,7 +170,7 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode) fAccess = bucket->is_readable; goto Finished; } - desired_access = FILE_GENERIC_READ; + desired_access = FILE_GENERIC_READ|FILE_FLAG_BACKUP_SEMANTICS; } else { // if(mode <= 6) if(bucket != NULL && bucket->is_rvalid && bucket->is_wvalid) { fAccess = bucket->is_readable & bucket->is_writable; |
