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
This commit is contained in:
Robert Watson 2000-09-12 14:35:48 +00:00
parent ac519db05b
commit 8f0dcdab88
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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':