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:
parent
bf42c18253
commit
4161876ae1
@ -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.
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user