Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144402130
D40602.id123400.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40602.id123400.diff
View Options
diff --git a/bin/getfacl/getfacl.1 b/bin/getfacl/getfacl.1
--- a/bin/getfacl/getfacl.1
+++ b/bin/getfacl/getfacl.1
@@ -30,7 +30,7 @@
.\" Developed by the TrustedBSD Project.
.\" Support for POSIX.1e access control lists.
.\"
-.Dd September 4, 2009
+.Dd June 19, 2023
.Dt GETFACL 1
.Os
.Sh NAME
@@ -56,7 +56,7 @@
.Pp
The following option is available:
.Bl -tag -width indent
-.It Fl d
+.It Fl d , Fl -default
The operation applies to the default ACL of a directory instead of the
access ACL.
An error is generated if a default ACL cannot be associated with
@@ -69,11 +69,11 @@
For NFSv4 ACLs, append numerical ID at the end of each entry containing
user or group name.
Ignored for POSIX.1e ACLs.
-.It Fl n
+.It Fl n , Fl -numeric
Display user and group IDs numerically rather than converting to
a user or group name.
Ignored for POSIX.1e ACLs.
-.It Fl q
+.It Fl q , Fl -omit-header
Do not write commented information about file name and ownership.
This is
useful when dealing with filenames with unprintable characters.
diff --git a/bin/getfacl/getfacl.c b/bin/getfacl/getfacl.c
--- a/bin/getfacl/getfacl.c
+++ b/bin/getfacl/getfacl.c
@@ -41,6 +41,7 @@
#include <err.h>
#include <errno.h>
+#include <getopt.h>
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
@@ -50,6 +51,14 @@
static int more_than_one = 0;
+static const struct option long_options[] =
+{
+ { "default", no_argument, NULL, 'd' },
+ { "numeric", no_argument, NULL, 'n' },
+ { "omit-header", no_argument, NULL, 'q' },
+ { NULL, no_argument, NULL, 0 },
+};
+
static void
usage(void)
{
@@ -200,7 +209,8 @@
qflag = 0;
nflag = 0;
vflag = 0;
- while ((ch = getopt(argc, argv, "dhinqv")) != -1)
+ while ((ch = getopt_long(argc, argv, "+dhinqv", long_options,
+ NULL)) != -1)
switch(ch) {
case 'd':
type = ACL_TYPE_DEFAULT;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 6:21 AM (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28547295
Default Alt Text
D40602.id123400.diff (1 KB)
Attached To
Mode
D40602: getfacl: add some long options for Linux compatibility
Attached
Detach File
Event Timeline
Log In to Comment