Date: Fri, 15 Aug 2008 09:44:27 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 147431 for review Message-ID: <200808150944.m7F9iRuE057147@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147431 Change 147431 by trasz@trasz_traszkan on 2008/08/15 09:43:38 Don't silently ignore "-d" flag in getfacl(1); warn instead. Affected files ... .. //depot/projects/soc2008/trasz_nfs4acl/bin/getfacl/getfacl.c#11 edit Differences ... ==== //depot/projects/soc2008/trasz_nfs4acl/bin/getfacl/getfacl.c#11 (text+ko) ==== @@ -197,8 +197,15 @@ else more_than_one++; - if (pathconf(path, _PC_EXTENDED_SECURITY_NP)) + if (pathconf(path, _PC_EXTENDED_SECURITY_NP)) { + if (type == ACL_TYPE_DEFAULT) { + warnx("%s: there are no default entries in NFS4 ACLs", + path); + return (-1); + } + type = ACL_TYPE_NFS4; + } if (!qflag) printf("# file: %s\n# owner: %s\n# group: %s\n", path,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808150944.m7F9iRuE057147>