Commit 24df62e3 authored by Alexandre Julliard's avatar Alexandre Julliard

O_DIRECTORY is not really needed.

parent 14ec5260
...@@ -71,11 +71,6 @@ typedef struct ...@@ -71,11 +71,6 @@ typedef struct
#define VFAT_IOCTL_READDIR_BOTH _IOR('r', 1, KERNEL_DIRENT [2] ) #define VFAT_IOCTL_READDIR_BOTH _IOR('r', 1, KERNEL_DIRENT [2] )
/* To avoid blocking on non-directories in DOSFS_OpenDir_VFAT*/
#ifndef O_DIRECTORY
# define O_DIRECTORY 0200000 /* must be directory */
#endif
#else /* linux */ #else /* linux */
#undef VFAT_IOCTL_READDIR_BOTH /* just in case... */ #undef VFAT_IOCTL_READDIR_BOTH /* just in case... */
#endif /* linux */ #endif /* linux */
...@@ -443,7 +438,7 @@ NTSTATUS WINAPI NtQueryDirectoryFile( HANDLE handle, HANDLE event, ...@@ -443,7 +438,7 @@ NTSTATUS WINAPI NtQueryDirectoryFile( HANDLE handle, HANDLE event,
if (show_dir_symlinks == -1) init_options(); if (show_dir_symlinks == -1) init_options();
if ((cwd = open(".", O_RDONLY|O_DIRECTORY)) != -1 && fchdir( fd ) != -1) if ((cwd = open(".", O_RDONLY)) != -1 && fchdir( fd ) != -1)
{ {
off_t old_pos = 0; off_t old_pos = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment