* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Fix test for

S_IFSOCK in mode bits.
This commit is contained in:
Corinna Vinschen 2008-05-20 21:08:39 +00:00
parent 28259ba2dd
commit 6e961ccc7e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-05-20 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Fix test for
S_IFSOCK in mode bits.
2008-05-20 Corinna Vinschen <corinna@vinschen.de>
* path.cc (symlink_worker): Fix EA buffer size info given to

View File

@ -854,7 +854,7 @@ fhandler_disk_file::fchmod (mode_t mode)
pc &= (DWORD) ~FILE_ATTRIBUTE_READONLY;
else
pc |= (DWORD) FILE_ATTRIBUTE_READONLY;
if (mode & S_IFSOCK)
if (S_ISSOCK (mode))
pc |= (DWORD) FILE_ATTRIBUTE_SYSTEM;
FILE_BASIC_INFORMATION fbi;