diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-03-19 21:34:38 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-03-19 21:34:38 +0000 |
commit | b1897d27a8be9c830f5fc30d7a91b754ad0de6fd (patch) | |
tree | 555d48b779ee5b421f5684ee82253b8ce621c792 /winsup/cygwin/syscalls.cc | |
parent | c16d09466bcdfd94ee3566ed8c6e662ffd084ffd (diff) | |
download | cygnal-b1897d27a8be9c830f5fc30d7a91b754ad0de6fd.tar.gz cygnal-b1897d27a8be9c830f5fc30d7a91b754ad0de6fd.tar.bz2 cygnal-b1897d27a8be9c830f5fc30d7a91b754ad0de6fd.zip |
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
wrong usage of S_IFDIR.
* security.cc (get_attribute_from_acl): Ditto.
(get_file_attribute): Fix wrong usage of S_IFLNK.
(get_object_attribute): Ditto.
(alloc_sd): Fix wrong usage of S_IFDIR.
* syscalls.cc (chmod): Allow chmod'ing of socket files.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index c59a5fcf3..61bb08646 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -904,7 +904,7 @@ chmod (const char *path, mode_t mode) /* FIXME: This makes chmod on a device succeed always. Someday we'll want to actually allow chmod to work properly on devices. */ - if (win32_path.is_device ()) + if (win32_path.is_device () && !win32_path.issocket ()) { res = 0; goto done; |