PERFORCE change 144479 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Jul 2 11:04:41 UTC 2008


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

Change 144479 by trasz at trasz_traszkan on 2008/07/02 11:04:20

	Add support for the new ACLs to getfacl(1).

Affected files ...

.. //depot/projects/soc2008/trasz_nfs4acl/bin/getfacl/getfacl.c#5 edit

Differences ...

==== //depot/projects/soc2008/trasz_nfs4acl/bin/getfacl/getfacl.c#5 (text+ko) ====

@@ -196,6 +196,9 @@
 	else
 		more_than_one++;
 
+	if (pathconf(path, _PC_EXTENDED_SECURITY_NP))
+		type = ACL_TYPE_NFS4;
+
 	if (!qflag)
 		printf("# file: %s\n# owner: %s\n# group: %s\n", path,
 		    getuname(sb.st_uid), getgname(sb.st_gid));
@@ -210,7 +213,7 @@
 			return(-1);
 		}
 		errno = 0;
-		if (type != ACL_TYPE_ACCESS)
+		if (type != ACL_TYPE_ACCESS && type != ACL_TYPE_NFS4)
 			return(0);
 		acl = acl_from_stat(sb);
 		if (!acl) {


More information about the p4-projects mailing list