Risto Salminen
ab4f93cf47
Fix df hanging when statvfs() fails.
...
Now df prints out an appropriate error message when statvfs() fails
instead of just hanging. Also make df return 1 when statvfs() fails.
2015-01-26 19:26:22 +00:00
sin
f701698297
Don't do a blocking open in ttytostr()
2015-01-16 16:20:16 +00:00
sin
a7a561ef00
Handle cleanup properly in ttytostr()
2015-01-16 16:10:38 +00:00
sin
8a95422ff1
Check if the ttymaj/ttymin match is actually a tty
2015-01-16 16:10:37 +00:00
sin
a5c30abf8f
Use TTY_NAME_MAX instead of PATH_MAX
2015-01-16 15:55:07 +00:00
sin
d76319f838
Properly match (ttymaj, ttymin) pairs to tty names in /dev
...
For the common case where we have pts/ or tty do it straight
away. Otherwise traverse /dev for a match. This fixes ps(1) when
it is executed over a serial terminal with tty names like ttyAMA0.
2015-01-16 15:55:07 +00:00
sin
2a0deb7600
Update LICENSE
2014-12-31 22:02:29 +00:00
sin
084d375a7d
Update LICENSE file just like for sbase
2014-12-23 18:10:54 +00:00
sin
42db5e13d0
Rename to unlock/lock as opposed to enable/disable
2014-12-05 19:06:40 +00:00
sin
b0b8579eb3
Add vtallow.1
2014-12-05 15:41:13 +00:00
sin
4269d523e2
Add vtallow(1) to enable or disable VT switch
2014-12-05 15:16:07 +00:00
sin
74c0abb6a2
Use -D_XOPEN_SOURCE=700
2014-11-30 14:12:52 +00:00
sin
cee1a0170d
watch: If period is negative default to 0.1s
2014-11-30 14:08:42 +00:00
sin
703e18185c
Update watch(1) to handle more accurate intervals
2014-11-30 14:05:44 +00:00
sin
4cb108f557
No need for dmesg_show() to have an fd
2014-11-30 13:28:26 +00:00
sin
10d6bf2f4d
Stop using *_FILENO
2014-11-30 13:12:33 +00:00
sin
2d45a04b92
Check if 0, 1, 2 are valid tty file descriptors
2014-11-30 13:05:24 +00:00
sin
6da76775cb
Rework tty setup in getty(8)
2014-11-30 13:00:43 +00:00
sin
facc3a871f
Turn enumeration into #defines
2014-11-30 12:34:26 +00:00
sin
7819662024
Break out libs into LDLIBS
2014-11-30 12:31:22 +00:00
sin
0c008b65ee
Bring in the sbase Makefile updates to ubase
2014-11-30 12:18:54 +00:00
sin
ae7aafc127
Rename util/ to libutil/
2014-11-29 21:46:47 +00:00
sin
d81c43ee3f
Remove tools from README
2014-11-29 21:46:42 +00:00
sin
d2a7d5aeca
Don't initialize unneeded variables in swaplabel(8)
2014-11-29 21:32:53 +00:00
Jan Tatje
aed9e3f6fa
Add swaplabel(8)
2014-11-29 21:22:56 +00:00
sin
fd6f44d7bf
No bool
2014-11-24 11:30:08 +00:00
sin
154381a0c7
Sync up util/*.c from sbase
2014-11-17 16:04:35 +00:00
sin
6e3c035db8
Properly signal failure if command fails in ubase-box
...
Similar fix as the one provided by emg for sbase.
2014-11-10 23:40:00 +00:00
sin
8ddf33f492
Update TODO style
2014-11-07 20:40:09 +00:00
sin
3dedd9bf8c
Add last(1) manpage to TODO
2014-11-07 11:41:30 +00:00
sin
0427a16144
Remove hwclock from TODO
2014-11-01 15:59:44 +00:00
sin
cea440bd2d
df -hk should disable -h and df -kh should disable -k
2014-10-18 18:22:55 +01:00
Jeffrey Picard
dc3a9d9e2a
Implement df -hk
2014-10-18 18:17:40 +01:00
sin
7e2fe55d68
Remember to include libgen.h for basename(3)
2014-10-17 16:08:31 +01:00
sin
09bfb1d065
Update list of tools in README
2014-10-16 12:36:03 +01:00
sin
faf12794db
We cannot use eprintf() without first initializing argv0
2014-10-16 11:40:57 +01:00
sin
04a30829a2
Remove last from TODO
2014-10-16 11:31:00 +01:00
Roberto E. Vargas Caballero
82500097cf
Update only the modified objects in util.a
2014-10-16 11:29:38 +01:00
Roberto E. Vargas Caballero
2f03742e05
Add last and lastb
2014-10-16 11:28:01 +01:00
sin
249b5b5c0a
Update TODO
2014-10-16 11:20:28 +01:00
sin
deb4fa8044
Nuke last EXIT_SUCCESS
2014-10-02 23:50:19 +01:00
sin
6f7f387352
Stop using EXIT_{SUCCESS,FAILURE}
2014-10-02 23:47:39 +01:00
sin
d4416d984b
Update TODO
2014-09-28 18:36:05 +01:00
sin
30715f1eec
No need for putchar('\n') after getpass()
2014-09-04 11:52:12 +01:00
sin
4a324f6359
Check for cmd truncation in watch(1)
2014-08-25 19:14:57 +01:00
Wolfgang Corcoran-Mathe
9859943d47
Remove unnecessary newline output from su
2014-08-25 15:37:13 +01:00
sin
cd1a3d5698
Rework parsecmdline()
2014-08-20 20:38:35 +01:00
sin
0fbd4280f8
Add lastlog to README
2014-08-18 22:35:13 +01:00
sin
ef78f20dd8
Use agetline() in lastlog(8)
...
Some other minor changes as well.
2014-08-18 22:03:50 +01:00
sin
1aaec6250a
Convert lastlog(8) to {w,}eprintf()
2014-08-18 21:55:38 +01:00