diff options
| author | Will Andrews <will@FreeBSD.org> | 2007-03-08 06:10:17 +0000 |
|---|---|---|
| committer | Will Andrews <will@FreeBSD.org> | 2007-03-08 06:10:17 +0000 |
| commit | 27f8233569912f7ffe314401a6b8086a3e6af67f (patch) | |
| tree | ba70d34350bf4f95883e2813bccdd9fae5a4543b /bin | |
| parent | d4c6c416dc7f21425cce2b83dad8d8baaa386958 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/df/df.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index e33b3e4430bd..9fdf14de7cdd 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -93,7 +93,7 @@ imax(int a, int b) return (a > b ? a : b); } -static int aflag = 0, cflag, hflag, iflag, kflag, nflag; +static int aflag = 0, cflag, hflag, iflag, kflag, lflag = 0, nflag; static struct ufs_args mdev; int @@ -159,6 +159,7 @@ main(int argc, char *argv[]) if (vfslist != NULL) errx(1, "-l and -t are mutually exclusive."); vfslist = makevfslist(makenetvfslist()); + lflag = 1; break; case 'm': putenv("BLOCKSIZE=1m"); @@ -168,6 +169,8 @@ main(int argc, char *argv[]) nflag = 1; break; case 't': + if (lflag) + errx(1, "-l and -t are mutually exclusive."); if (vfslist != NULL) errx(1, "only one -t option may be specified"); fstype = optarg; |
