diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-12-15 15:56:39 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-06-23 22:30:15 +0300 |
commit | 733af66c6e969b186b6e83ad0c9ecaf6728582df (patch) | |
tree | 5bf51d02ea7e31dcc5eb313f87338e9e6270a705 /winsup/cygwin/fhandler_disk_file.cc | |
parent | b2867a68b9f94402e2afba49de978d9e8f9abaeb (diff) |
Remove support for SUNWNFS file system
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 0d243c411..6e61ee2b8 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1457,32 +1457,17 @@ fhandler_base::open_fs (int flags, mode_t mode) bool new_file = !exists (); int res = fhandler_base::open (flags | O_DIROPEN, mode); - if (!res) - goto out; - - /* This is for file systems known for having a buggy CreateFile call - which might return a valid HANDLE without having actually opened - the file. - The only known file system to date is the SUN NFS Solstice Client 3.1 - which returns a valid handle when trying to open a file in a nonexistent - directory. */ - if (pc.has_buggy_open () && !pc.exists ()) + if (res) { - debug_printf ("Buggy open detected."); - close_fs (); - set_errno (ENOENT); - return 0; - } - - /* The file info in pc is wrong at this point for newly created files. - Refresh it before fetching any file info. */ - if (new_file) - pc.get_finfo (get_io_handle ()); + /* The file info in pc is wrong at this point for newly created files. + Refresh it before fetching any file info. */ + if (new_file) + pc.get_finfo (get_io_handle ()); - if (pc.isgood_inode (pc.get_ino ())) - ino = pc.get_ino (); + if (pc.isgood_inode (pc.get_ino ())) + ino = pc.get_ino (); + } -out: syscall_printf ("%d = fhandler_disk_file::open(%S, %y)", res, pc.get_nt_native_path (), flags); return res; |