PERFORCE change 147431 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Fri Aug 15 09:44:28 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=147431

Change 147431 by trasz at 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,


More information about the p4-projects mailing list