diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-11-28 18:45:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-11-28 18:45:42 +0000 |
commit | e1a993d549f9f3047d31de7aeeaa0f49efdb738b (patch) | |
tree | 3335f8ca3aa14f96ec1c1e01c10d1723b5ed1736 /winsup/cygwin/path.cc | |
parent | 91797c6d8e6b2fbb4bb652aab2087ea6d7b09c00 (diff) | |
download | cygnal-e1a993d549f9f3047d31de7aeeaa0f49efdb738b.tar.gz cygnal-e1a993d549f9f3047d31de7aeeaa0f49efdb738b.tar.bz2 cygnal-e1a993d549f9f3047d31de7aeeaa0f49efdb738b.zip |
* fhandler.cc (fhandler_disk_file::open): Check for buggy CreateFile
condition.
* path.cc (path_conv::check): Get file system type in call to
GetVolumeInformation to check for file systems with buggy CreateFile.
* path.h (enum path_types): Add PATH_HASBUGGYOPEN.
(class path_conv): Add methods `has_buggy_open' and
`set_has_buggy_open'.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 836ba85f6..060bb9a4e 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -389,20 +389,26 @@ out: return; } DWORD serial, volflags; + char fs_name[16]; strcpy (tmp_buf, full_path); if (!rootdir (tmp_buf) || - !GetVolumeInformation (tmp_buf, NULL, 0, &serial, NULL, &volflags, NULL, 0)) + !GetVolumeInformation (tmp_buf, NULL, 0, &serial, NULL, + &volflags, fs_name, 16)) { debug_printf ("GetVolumeInformation(%s) = ERR, full_path(%s), set_has_acls(FALSE)", tmp_buf, full_path, GetLastError ()); set_has_acls (FALSE); + set_has_buggy_open (FALSE); } else { debug_printf ("GetVolumeInformation(%s) = OK, full_path(%s), set_has_acls(%d)", tmp_buf, full_path, volflags & FS_PERSISTENT_ACLS); set_has_acls (volflags & FS_PERSISTENT_ACLS); + /* Known file systems with buggy open calls. Further explanation + in fhandler.cc (fhandler_disk_file::open). */ + set_has_buggy_open (strcmp (fs_name, "SUNWNFS") == 0); } #if 0 |