Subject: umount error status wrong?
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: John Kohl <jtk@kolvir.blrc.ma.us>
List: current-users
Date: 07/19/1994 01:05:37
umount(8) currently exits with status 1 if it was successful unmounting
a filesystem. Shouldn't it exit with status 0?
==John
===================================================================
RCS file: RCS/umount.c,v
retrieving revision 1.1
diff -c -r1.1 umount.c
*** 1.1 1994/07/16 20:57:07
--- umount.c 1994/07/16 20:57:00
***************
*** 129,135 ****
errs = umountall();
} else
for (errs = 0; *argv != NULL; ++argv)
! if (umountfs(*argv) == 0)
errs = 1;
exit(errs);
}
--- 129,135 ----
errs = umountall();
} else
for (errs = 0; *argv != NULL; ++argv)
! if (umountfs(*argv) != 0)
errs = 1;
exit(errs);
}
------------------------------------------------------------------------------