* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open the file

if it uses an acl.
This commit is contained in:
Christopher Faylor 2004-05-29 00:51:16 +00:00
parent e3778517d9
commit c4c9eb5fd6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-05-28 Pierre Humblet <Pierre.Humblet@ieee.org>
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open
the file if it uses an acl.
2004-05-28 Pierre Humblet <Pierre.Humblet@ieee.org>
* path.cc (chdir): Always use the normalized_path as posix_cwd, except

View File

@ -381,7 +381,7 @@ fhandler_disk_file::fchmod (mode_t mode)
if (wincap.has_security ())
{
enable_restore_privilege ();
if (!get_io_handle ())
if (!get_io_handle () && pc.has_acls ())
{
query_open (query_write_control);
if (!(oret = open_fs (O_BINARY, 0)))