* 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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user