* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Handle S_IFSOCK
mode bit by setting the SYSTEM attribute. * fhandler_socket.cc (fhandler_socket::fchmod): Add S_IFSOCK mode bit when calling fhandler_disk_file::fchmod. Don't set attributes here.
This commit is contained in:
@ -772,6 +772,8 @@ fhandler_disk_file::fchmod (mode_t mode)
|
||||
pc &= (DWORD) ~FILE_ATTRIBUTE_READONLY;
|
||||
else
|
||||
pc |= (DWORD) FILE_ATTRIBUTE_READONLY;
|
||||
if (mode & S_IFSOCK)
|
||||
pc |= (DWORD) FILE_ATTRIBUTE_SYSTEM;
|
||||
|
||||
IO_STATUS_BLOCK io;
|
||||
FILE_BASIC_INFORMATION fbi;
|
||||
|
Reference in New Issue
Block a user