From owner-p4-projects@FreeBSD.ORG Thu Aug 14 07:42:45 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 57E2B106567B; Thu, 14 Aug 2008 07:42:45 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BFDC1065677 for ; Thu, 14 Aug 2008 07:42:45 +0000 (UTC) (envelope-from trasz@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 078068FC0C for ; Thu, 14 Aug 2008 07:42:45 +0000 (UTC) (envelope-from trasz@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7E7giv6031566 for ; Thu, 14 Aug 2008 07:42:44 GMT (envelope-from trasz@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7E7giGV031564 for perforce@freebsd.org; Thu, 14 Aug 2008 07:42:44 GMT (envelope-from trasz@freebsd.org) Date: Thu, 14 Aug 2008 07:42:44 GMT Message-Id: <200808140742.m7E7giGV031564@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to trasz@freebsd.org using -f From: Edward Tomasz Napierala To: Perforce Change Reviews Cc: Subject: PERFORCE change 147367 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:42:45 -0000 http://perforce.freebsd.org/chv.cgi?CH=147367 Change 147367 by trasz@trasz_traszkan on 2008/08/14 07:42:03 Update setfacl(1) manual page and usage(). Affected files ... .. //depot/projects/soc2008/trasz_nfs4acl/bin/setfacl/setfacl.1#4 edit .. //depot/projects/soc2008/trasz_nfs4acl/bin/setfacl/setfacl.c#10 edit Differences ... ==== //depot/projects/soc2008/trasz_nfs4acl/bin/setfacl/setfacl.1#4 (text+ko) ==== @@ -33,11 +33,11 @@ .Nd set ACL information .Sh SYNOPSIS .Nm +.Op Fl bdhkn .Op Fl a Ar position entries -.Op Fl bdhkn .Op Fl m Ar entries .Op Fl M Ar file -.Op Fl x Ar entries +.Op Fl x Ar entries | position .Op Fl X Ar file .Op Ar .Sh DESCRIPTION @@ -57,7 +57,8 @@ specified in .Ar entries , starting at position -.Ar position . +.Ar position , +counting from zero. This option is only applicable to NFS4 ACLs. .It Fl b Remove all ACL entries except for the three required entries @@ -106,10 +107,14 @@ .It Fl n Do not recalculate the permissions associated with the ACL mask entry. This option is not applicable to NFS4 ACLs. -.It Fl x Ar entries -Remove the ACL entries specified in +.It Fl x Ar entries | position +If .Ar entries +is specified, remove the ACL entries specified there from the access or default ACL of the specified files. +Otherwise, remove entry at index +.Ar position , +counting from zero. .It Fl X Ar file Remove the ACL entries specified in the file .Ar file @@ -386,6 +391,11 @@ from .Pa file . .Pp +.Dl setfacl -x0 file +.Pp +Remove the first entry from the NFS4 ACL from +.Pa file . +.Pp .Dl setfacl -bn file .Pp Remove all ==== //depot/projects/soc2008/trasz_nfs4acl/bin/setfacl/setfacl.c#10 (text+ko) ==== @@ -102,8 +102,8 @@ usage(void) { - fprintf(stderr, "usage: setfacl [-bdhkn] [-m entries] [-M file] " - "[-x entries] [-X file] [file ...]\n"); + fprintf(stderr, "usage: setfacl [-bdhkn] [-a position entries] " + "[-m entries] [-M file] [-x entries] [-X file] [file ...]\n"); exit(1); }