1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Allow for the last arugment to be the mountpoint of a filesystem,

not just the device.
This commit is contained in:
Paul Saab 2001-03-10 12:12:47 +00:00
parent 360b348374
commit 81f1ec27ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74071

View File

@ -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;
}