diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-09-12 14:35:48 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-09-12 14:35:48 +0000 |
commit | 4161876ae1660a56fae8ed7d7ec3cfc2e84978bd (patch) | |
tree | 14482c4e3effd8151a99c3afdf9adbea21f7ac39 /usr.sbin/extattrctl | |
parent | bf42c182536a43c1d32f5bd45ea88ca37283cba8 (diff) | |
download | FreeBSD-src-4161876ae1660a56fae8ed7d7ec3cfc2e84978bd.zip FreeBSD-src-4161876ae1660a56fae8ed7d7ec3cfc2e84978bd.tar.gz |
o What a good idea, ``-o'' should be a ``-f'' like in every other
utility that is cautious but sometimes you want to be less
cautious. Go figure.
Submitted by: sheldonh
Diffstat (limited to 'usr.sbin/extattrctl')
-rw-r--r-- | usr.sbin/extattrctl/extattrctl.8 | 6 | ||||
-rw-r--r-- | usr.sbin/extattrctl/extattrctl.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/extattrctl/extattrctl.8 b/usr.sbin/extattrctl/extattrctl.8 index 52ad134..fba5b5b 100644 --- a/usr.sbin/extattrctl/extattrctl.8 +++ b/usr.sbin/extattrctl/extattrctl.8 @@ -40,7 +40,7 @@ .Ar path .Nm extattrctl .Cm initattr -.Op Fl o +.Op Fl f .Op Fl p Ar path .Ar attrsize .Ar attrfile @@ -76,7 +76,7 @@ Stop extended attribute support on the file system named using Extended attribute support must previously have been started. .It Xo .Cm initattr -.Op Fl o +.Op Fl f .Op Fl p Ar path .Ar attrsize attrfile .Xc @@ -87,7 +87,7 @@ as well as the file where the attribute will be stored, using .Ar attrfile . .Pp The -.Fl o +.Fl f argument may be used to indicate that it is alright to overwrite an existing attribute backing file; otherwise, if the target file exists, an error will be returned. diff --git a/usr.sbin/extattrctl/extattrctl.c b/usr.sbin/extattrctl/extattrctl.c index 2d08926..7802687 100644 --- a/usr.sbin/extattrctl/extattrctl.c +++ b/usr.sbin/extattrctl/extattrctl.c @@ -54,7 +54,7 @@ usage(void) "usage:\n" " extattrctl start [path]\n" " extattrctl stop [path]\n" - " extattrctl initattr [-o] [-p path] [attrsize] [attrfile]\n" + " extattrctl initattr [-f] [-p path] [attrsize] [attrfile]\n" " extattrctl enable [path] [attrname] [attrfile]\n" " extattrctl disable [path] [attrname]\n"); exit(-1); @@ -85,9 +85,9 @@ initattr(int argc, char *argv[]) int ch, i, error, chunksize, overwrite = 0, flags; optind = 0; - while ((ch = getopt(argc, argv, "op:r:w:")) != -1) + while ((ch = getopt(argc, argv, "fp:r:w:")) != -1) switch (ch) { - case 'o': + case 'f': overwrite = 1; break; case 'p': |