Commit Graph

212 Commits

Author SHA1 Message Date
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
Hiltjo Posthuma
68c3146a9d stat: assign fn before loop
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:19 +00:00
Hiltjo Posthuma
780fd613eb truncate: match coreutils truncate behaviour
improvements:
- when truncate on a file failed proceed with the rest.
- when truncate on a file failed exit with EXIT_FAILURE.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:09 +00:00
Hiltjo Posthuma
923773f9d8 lsusb: initialize variables to 0, fix type warning
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:00 +00:00
Hiltjo Posthuma
b0576fc22b clear, watch: use 0x1b instead of non-standard \e
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:10:53 +00:00
Hiltjo Posthuma
f8f4a96cc1 mount: siz variable can potentially be used uninitialized
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:10:45 +00:00
sin
892d84ca24 Return an error if we can't open the files in /proc 2014-02-13 12:28:46 +00:00
sin
1f783e7d96 Print hostname as well in getty 2014-02-11 11:29:31 +00:00
sin
894be72e6b Use LOGIN_NAME_MAX instead of a hardcoded value
As far as I can tell LOGIN_NAME_MAX includes the null-terminator.
2014-02-11 11:02:02 +00:00
sin
5d06ac4688 Allow getty to execute another program instead of /bin/login 2014-02-11 10:47:02 +00:00
sin
48b505fad3 Don't die on vhangup() failure
We might be able to continue at this point.
2014-02-11 10:16:13 +00:00
sin
9a4fba0251 Use calloc() instead of malloc() + memset() 2014-02-10 19:29:41 +00:00
sin
471432a9e6 Ensure opts is null-terminated before calling strcat() 2014-02-10 19:07:41 +00:00
sin
deeeec8977 Don't put '\n' in getty
We can do this in the initscripts.
2014-02-10 15:50:16 +00:00
sin
5c1c8d60be su is after stat 2014-02-10 15:50:11 +00:00
sin
cb904446ec Ensure getty prompts for the username
As Eckehard Berns reported:

"On Slackware /bin/login times out after 60 seconds which will
clutter the vt after a couple of minutes with timeout messages and login
prompts. So it seems that getty should ask for the username first even
if login could do it as well."
2014-02-10 15:49:39 +00:00
sin
a8e1ea1398 Guard against strlcpy()/strlcat() being implemented as macros 2014-02-10 13:16:42 +00:00
sin
1de3e6c679 Always print the program name 2014-02-10 12:34:34 +00:00
sin
adc7ff7d04 Add initial version of getty 2014-02-10 12:15:58 +00:00
sin
bb87246743 Remove implemented items from TODO 2014-02-09 12:32:59 +00:00
sin
2033ecb340 Use config.def.h 2014-02-09 12:30:22 +00:00
sin
33c94d161d Add Carlos J. Torres to LICENSE 2014-02-09 11:09:04 +00:00
Carlos J. Torres
c41c38649c prefer swap device option 2014-02-09 11:08:53 +00:00
Carlos J. Torres
9938320eea disable all swap devices 2014-02-09 11:08:39 +00:00