From b1897d27a8be9c830f5fc30d7a91b754ad0de6fd Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 19 Mar 2003 21:34:38 +0000 Subject: * 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. --- winsup/cygwin/syscalls.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/syscalls.cc') 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; -- cgit v1.2.3