* 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:
Corinna Vinschen
2003-03-19 21:34:38 +00:00
parent c16d09466b
commit b1897d27a8
4 changed files with 25 additions and 14 deletions

View File

@ -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;