aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index 30aced9d9ff..f35ad67d829 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -6407,6 +6407,23 @@ acl_set_file (const char *fname, acl_type_t type, acl_t acl)
6407 return retval; 6407 return retval;
6408} 6408}
6409 6409
6410/* Return true if errno value ERRNUM indicates that ACLs are well
6411 supported on this system. ERRNUM should be an errno value obtained
6412 after an ACL-related system call fails. */
6413bool
6414acl_errno_valid (int errnum)
6415{
6416 switch (errnum)
6417 {
6418 case EBUSY:
6419 case EINVAL:
6420 case ENOTSUP:
6421 return false;
6422 default:
6423 return true;
6424 }
6425}
6426
6410 6427
6411/* MS-Windows version of careadlinkat (cf. ../lib/careadlinkat.c). We 6428/* MS-Windows version of careadlinkat (cf. ../lib/careadlinkat.c). We
6412 have a fixed max size for file names, so we don't need the kind of 6429 have a fixed max size for file names, so we don't need the kind of