diff --git a/usr.sbin/extattrctl/extattrctl.8 b/usr.sbin/extattrctl/extattrctl.8 index 52ad1349a64a..fba5b5b0d963 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 2d08926e1869..78026878fecf 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':