* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open the file
if it uses an acl.
This commit is contained in:
parent
e3778517d9
commit
c4c9eb5fd6
|
@ -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>
|
2004-05-28 Pierre Humblet <Pierre.Humblet@ieee.org>
|
||||||
|
|
||||||
* path.cc (chdir): Always use the normalized_path as posix_cwd, except
|
* path.cc (chdir): Always use the normalized_path as posix_cwd, except
|
||||||
|
|
|
@ -381,7 +381,7 @@ fhandler_disk_file::fchmod (mode_t mode)
|
||||||
if (wincap.has_security ())
|
if (wincap.has_security ())
|
||||||
{
|
{
|
||||||
enable_restore_privilege ();
|
enable_restore_privilege ();
|
||||||
if (!get_io_handle ())
|
if (!get_io_handle () && pc.has_acls ())
|
||||||
{
|
{
|
||||||
query_open (query_write_control);
|
query_open (query_write_control);
|
||||||
if (!(oret = open_fs (O_BINARY, 0)))
|
if (!(oret = open_fs (O_BINARY, 0)))
|
||||||
|
|
Loading…
Reference in New Issue