comparison lib/set-mode-acl.c @ 10181:5282ccc922b9

Add support for Cygwin ACLs.
author Bruno Haible <bruno@clisp.org>
date Sun, 08 Jun 2008 16:52:23 +0200
parents 9f98a7fc375c
children 4a177f4b083f
comparison
equal deleted inserted replaced
10180:9f98a7fc375c 10181:5282ccc922b9
303 return chmod_or_fchmod (name, desc, mode); 303 return chmod_or_fchmod (name, desc, mode);
304 return -1; 304 return -1;
305 } 305 }
306 } 306 }
307 307
308 if (mode & (S_ISUID | S_ISGID | S_ISVTX)) 308 if (!MODE_INSIDE_ACL || (mode & (S_ISUID | S_ISGID | S_ISVTX)))
309 { 309 {
310 /* We did not call chmod so far, so the special bits have not yet 310 /* We did not call chmod so far, so the special bits have not yet
311 been set. */ 311 been set. */
312 return chmod_or_fchmod (name, desc, mode); 312 return chmod_or_fchmod (name, desc, mode);
313 } 313 }