diff options
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r-- | usr.sbin/mtree/mtree.c | 7 |
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; |