1
0
mirror of git://git.suckless.org/ubase synced 2024-12-18 12:44:57 +00:00
Commit Graph

23 Commits

Author SHA1 Message Date
sin
f58c4312a4 Add umount manpage and fix umount usage 2014-04-13 16:28:51 +01:00
sin
d06158ccf9 Use /proc/mounts instead of /etc/mtab
Let the kernel keep track of mounted filesystems, no need to use
/etc/mtab as we are not modifying it.
2014-03-18 14:29:14 +00:00
sin
861e16ac17 Check strdup() for failure 2014-03-15 18:49:38 +00:00
sin
6ef8c718e1 umount -a should unmount in the reverse order 2014-03-15 18:49:33 +00:00
sin
98f7fcad94 Factor out umount -a into a separate function 2014-03-15 18:49:27 +00:00
sin
e5b9f69626 Print mnt_dir as well if umount2 fails. 2014-03-15 18:49:15 +00:00
sin
14716af472 Don't umount proc in umount -a 2014-03-12 14:40:03 +00:00
sin
bea831d2e6 umount(8) should look in /etc/mtab 2014-03-12 14:39:52 +00:00
sin
6506e85d13 Update umount usage 2014-03-12 14:39:31 +00:00
sin
38bda0c783 Replace perror() with weprintf() 2014-03-12 14:23:27 +00:00
sin
f7a4849ded No need to have ':' in perror()
It gets added automatically.
2014-03-11 19:47:09 +00:00
sin
e6375453b1 Set ret to EXIT_FAILURE if umount2() actually fails 2014-03-11 19:47:09 +00:00
sin
7f92db7327 Implement umount -a 2014-03-11 19:47:08 +00:00
sin
d017808c80 Do not terminate early on a umount failure 2013-10-07 19:18:38 +01:00
s-p-k
e340e1373e exit with EXIT_SUCCESS/EXIT_FAILURE 2013-10-07 19:15:00 +01:00
sin
713f1cfdb2 Handle correctly the -n option for mount and umount 2013-09-06 11:01:03 +01:00
sin
65e02d66b5 We do not update /etc/mtab for mount/umount - update usage 2013-09-04 10:55:44 +01:00
sin
19992672a5 Opening brackets always on the next line for func defs 2013-08-16 11:15:37 +01:00
sin
97cbad7eef Remove OpenBSD support
This is becoming a nightmare.  Just support Linux.
2013-08-14 14:40:47 +01:00
sin
7d653dbd07 Fix vertical spacing in umount.c 2013-08-10 11:38:30 +01:00
sin
acb55413b6 Add missing copyright + LICENSE details 2013-08-07 13:42:35 +03:00
sin
9fbe1e6e66 Implement -l support for umount
This operation is not supported on OpenBSD so just
set errno to ENOTSUP.
2013-08-07 10:33:19 +01:00
sin
d4c1710911 Add umount(8)
No manpage yet.
2013-08-07 10:13:21 +01:00