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:
parent
9fe43ff672
commit
6a9465f387
2 changed files with 8 additions and 1 deletions
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue