Minor fix in acl_set_file.

src/w32.c (acl_set_file): Treat ERROR_ACCESS_DENIED from
 set_file_security as failure due to insufficient privileges.
 Reported by Fabrice Popineau <fabrice.popineau@supelec.fr>.
This commit is contained in:
Eli Zaretskii 2013-01-19 09:13:19 +02:00
parent 9fe43ff672
commit 6a9465f387
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-01-19 Eli Zaretskii <eliz@gnu.org>
* w32.c (acl_set_file): Treat ERROR_ACCESS_DENIED from
set_file_security as failure due to insufficient privileges.
Reported by Fabrice Popineau <fabrice.popineau@supelec.fr>.
2013-01-19 Paul Eggert <eggert@cs.ucla.edu>
Work around bug in CIFS and vboxsf file systems (Bug#13149).

View file

@ -4875,7 +4875,8 @@ acl_set_file (const char *fname, acl_type_t type, acl_t acl)
retval = 0;
errno = e;
}
else if (err == ERROR_INVALID_OWNER || err == ERROR_NOT_ALL_ASSIGNED)
else if (err == ERROR_INVALID_OWNER || err == ERROR_NOT_ALL_ASSIGNED
|| err == ERROR_ACCESS_DENIED)
{
/* Maybe the requested ACL and the one the file already has are
identical, in which case we can silently ignore the