Commit Graph

235 Commits

Author SHA1 Message Date
sin
7cd9280b11 Remove implemented items from TODO 2014-03-17 12:55:41 +00:00
sin
e91b3d9e71 Fix indentation for mount(8)
No functional change intended.
2014-03-17 12:49:05 +00:00
sin
4fb9eabf8e Implement -o for killall5 2014-03-17 12:29:34 +00:00
Hiltjo Posthuma
55fa13016c mount: only use source if not set
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-16 04:04:10 +00:00
sin
df9e438843 Only complain for a missing /etc/fstab
Avoids complaining for /proc/mounts while mounting procfs.
2014-03-15 19:30:43 +00:00
Hiltjo Posthuma
023c8e0414 mount: use mount error status code when mount failed
this matches other mount implementations

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 19:30:20 +00:00
Hiltjo Posthuma
bd994c3a50 mount: fix bug where target mountpoint would not be used
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 19:30:03 +00:00
Hiltjo Posthuma
a056e2aa54 mount: match mountpoint error message with util-linux
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 19:29:40 +00:00
Hiltjo Posthuma
9af24d8a29 mount: show devicename in error output for clarity
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 19:29:21 +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
Hiltjo Posthuma
7569fd3805 mount: match on source rule too if argument is set
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:52:10 +00:00
Hiltjo Posthuma
5b5cb8447e mount: if no options flag given, use matched mount rule options
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:52:02 +00:00
Hiltjo Posthuma
781cf0ed52 mount: implement some error status codes for mount -a
see mount man page:
32: all failed.
64: some failed.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:51:46 +00:00
Hiltjo Posthuma
c444139aea mount: just set data empty in declaration
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:51:32 +00:00
sin
6c926cd1d4 Use weprintf() instead of fprintf() for mount(8) 2014-03-15 14:01:59 +00:00
Hiltjo Posthuma
35e3f401ab Major mount(8) refactor 2014-03-15 13:27:02 +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
552a5ae4b5 Don't prefix messages with the tool name by default 2014-03-12 14:39:42 +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
6df1301594 Add weprintf() 2014-03-12 14:23:19 +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
4879ea07b4 Implement mount -a
This code needs refactoring.
2014-03-11 19:47:08 +00:00
sin
a3e437c7ef Fix style issue 2014-03-06 15:09:11 +00:00
sin
a32345028e Add initial version of killall5(8) 2014-03-06 12:13:49 +00:00
sin
d0dc4dc2b7 Fix some more instances of enprintf(EXIT_FAILURE, ...); 2014-02-27 15:10:39 +00:00
sin
634e77a1a5 Simply use eprintf() instead of enprintf() 2014-02-27 14:59:34 +00:00
sin
e75c56ad6a Update manpages - these tools are in ubase now 2014-02-27 14:32:22 +00:00
sin
02e0a1de08 Import id(1) from sbase 2014-02-27 14:30:30 +00:00
sin
2c98e18a33 The flag for unshare(1) is 'U' not 'u' 2014-02-24 13:53:34 +00:00
sin
3f660d71d3 Update unshare(1) usage 2014-02-24 13:52:27 +00:00
sin
3f98a7abc8 Convert mount(8) to mntent and kill grabmntinfo.[ch] 2014-02-24 13:44:15 +00:00
sin
fa96b14fbc Add -Wextra in config.mk 2014-02-24 13:00:54 +00:00
sin
a6263b656e Use setenv() instead of putenv() in getty 2014-02-24 13:00:36 +00:00
sin
d7ef6ea895 Preserve getty environment in login 2014-02-17 11:44:04 +00:00
sin
6fd1d4c809 Convert mountpoint(1) to use mntent 2014-02-15 18:34:59 +00:00
sin
3bb0f0fbdd Check setmntent() for failures 2014-02-15 18:27:46 +00:00
sin
005e90a7ff Use mntent in df(1)
I am slowly going to remove grabmntinfo and friends.
2014-02-15 18:27:39 +00:00
sin
4b72fcf421 Fix indentation 2014-02-15 18:27:21 +00:00
sin
422f400c21 Import who from sbase 2014-02-14 15:07:43 +00:00
sin
ac57c4ab7f Remember to reset ownership and permissions on the tty device 2014-02-14 14:12:10 +00:00
sin
3e0d247d94 Add Hiltjo Posthuma to LICENSE 2014-02-14 14:11:44 +00:00
Hiltjo Posthuma
c5f17bd3dc remove some signed / unsigned type warnings
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:37 +00:00
Hiltjo Posthuma
96af28da60 su: set default 'root', fixes a uninitialised variable warning
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:28 +00:00