summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/mtree.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-01-11 19:38:48 +0000
committerphk <phk@FreeBSD.org>2004-01-11 19:38:48 +0000
commit32088626608317036dceb467a6f9b90fb02fd46c (patch)
tree73eccb588e3cb50b2fe4d6cab897730b75de9c95 /usr.sbin/mtree/mtree.c
parentad83565985bcd5de2b65d3cccbdeb9b10289e751 (diff)
downloadFreeBSD-src-32088626608317036dceb467a6f9b90fb02fd46c.zip
FreeBSD-src-32088626608317036dceb467a6f9b90fb02fd46c.tar.gz
Get rid of "lineno: 0" in error messages from create mode.
Add -w(arning) flag which makes failure to look up uid/gid a nonfatal warning instead of an error.
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r--usr.sbin/mtree/mtree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index 2fe395e..a815a0b 100644
--- a/usr.sbin/mtree/mtree.c
+++ b/usr.sbin/mtree/mtree.c
@@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
#include "extern.h"
int ftsoptions = FTS_PHYSICAL;
-int cflag, dflag, eflag, iflag, nflag, qflag, rflag, sflag, uflag, Uflag;
+int cflag, dflag, eflag, iflag, nflag, qflag, rflag, sflag, uflag, Uflag, wflag;
u_int keys;
char fullpath[MAXPATHLEN];
@@ -72,7 +72,7 @@ main(int argc, char *argv[])
spec1 = stdin;
spec2 = NULL;
- while ((ch = getopt(argc, argv, "cdef:iK:k:LnPp:qrs:UuxX:")) != -1)
+ while ((ch = getopt(argc, argv, "cdef:iK:k:LnPp:qrs:UuwxX:")) != -1)
switch((char)ch) {
case 'c':
cflag = 1;
@@ -142,6 +142,9 @@ main(int argc, char *argv[])
case 'u':
uflag = 1;
break;
+ case 'w':
+ wflag = 1;
+ break;
case 'x':
ftsoptions |= FTS_XDEV;
break;
OpenPOWER on IntegriCloud