Unmount the first dir, too.
This commit is contained in:
parent
1eacf67a6e
commit
55211b963a
@ -29,7 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "$Id: umount.c,v 1.2 1994/06/14 01:19:50 cgd Exp $";
|
static char rcsid[] = "$Id: umount.c,v 1.3 1994/08/02 12:27:10 ws Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -50,13 +50,11 @@ main(argc, argv)
|
|||||||
char **argv;
|
char **argv;
|
||||||
{
|
{
|
||||||
sync();
|
sync();
|
||||||
argc--;
|
|
||||||
if (strcmp(*++argv, "-f") == 0) {
|
if (strcmp(*++argv, "-f") == 0) {
|
||||||
fflag = MNT_FORCE;
|
fflag = MNT_FORCE;
|
||||||
argc--;
|
|
||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
if (*++argv && **argv == '-') {
|
if (*argv && **argv == '-') {
|
||||||
errprint("usage: umount [-f] node ...");
|
errprint("usage: umount [-f] node ...");
|
||||||
_exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user