diff options
| author | Paul Saab <ps@FreeBSD.org> | 2001-03-10 12:12:47 +0000 |
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2001-03-10 12:12:47 +0000 |
| commit | 81f1ec27ee83a0ec607def5bad13d4a3dfad70c0 (patch) | |
| tree | f7ec6c71b1c3c9f798d03619355c353d714a0caf /usr.sbin | |
| parent | 360b348374d9c64d943a6801476aae9b4148749a (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/quot/quot.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index 01f822eb383a..0864015df605 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -43,6 +43,7 @@ static const char rcsid[] = #include <err.h> #include <fcntl.h> +#include <fstab.h> #include <errno.h> #include <paths.h> #include <pwd.h> @@ -526,6 +527,7 @@ main(argc,argv) { char all = 0; struct statfs *mp; + struct fstab *fs; char dev[MNAMELEN + 1]; char *nm; int cnt; @@ -578,7 +580,12 @@ main(argc,argv) } } } - while (--argc >= 0) - quot(*argv++,0); + while (--argc >= 0) { + if ((fs = getfsfile(*argv)) != NULL) + quot(fs->fs_spec, 0); + else + quot(*argv,0); + argv++; + } return 0; } |
