sin
41769b976a
Check for a valid pagesize in mkswap(8)
2013-10-29 15:55:59 +00:00
sin
9c37575961
A pagesize of 0 is invalid so treat it that way
2013-10-29 15:44:58 +00:00
sin
97975ff092
Add pagesize(1)
...
This program is useful in constructing portable shell scripts.
2013-10-29 15:37:42 +00:00
sin
0476f601b2
Fix alignment for table `optnames[]'
2013-10-28 16:53:21 +00:00
sin
5f3c183b85
Setup a sane PATH across su(1)
...
Also added a config.h for the basic configuration of ubase.
2013-10-19 19:11:14 +01:00
Jakob Kramer
ab37391837
fix SHELL being set to the usr's home directory
2013-10-18 21:46:03 +01:00
sin
bfb4b38cff
If we are preserving the environment use SHELL instead of pw->pw_shell
2013-10-18 16:23:22 +01:00
sin
acb9ae197e
Implement -p for su(1)
2013-10-18 14:26:40 +01:00
sin
7e59506b4b
Set SHELL environment variable by default
...
If target user is not root also set USER and LOGNAME.
2013-10-18 11:22:31 +01:00
sin
784c6a5acf
Implement -l support for su(1)
2013-10-18 11:15:31 +01:00
sin
f7bfe68a9e
We use environ so declare it
2013-10-18 11:15:31 +01:00
sin
86566f4ceb
Only try to ask for a password and check if uid is != 0
2013-10-18 10:26:48 +01:00
sin
56ce9e8bff
Some stylistic changes to su(1)
...
Also set errno to zero before calling getspnam().
2013-10-18 10:26:40 +01:00
sin
f7fdd58972
Use a compound literal instead of malloc() in su(1)
2013-10-18 10:08:27 +01:00
sin
dac38406c2
Bump to C99 for ubase
2013-10-18 10:07:33 +01:00
sin
ff2e11638f
Add initial su(1)
2013-10-17 23:04:20 +01:00
sin
8c2bbb8fb3
Rename manpages to match the proper section
...
Install manpages to the right place, ensure their permissions
is set correctly.
2013-10-17 14:00:21 +03:00
sin
c0c5620074
Simplify manpages
2013-10-17 11:41:04 +01:00
s-p-k
a966a8da7e
Add clear(1), eject(1) and halt(8) man pages
2013-10-17 09:47:14 +01:00
s-p-k
990d900890
Add lsmod(8) man page
2013-10-17 09:45:21 +01:00
s-p-k
4bd8642bf5
Add lsusb(8) man page
2013-10-16 19:13:25 +01:00
s-p-k
adfa94b3c4
Add df(1) man page
2013-10-16 18:06:11 +01:00
sin
c5eb34ef39
Update README
2013-10-14 13:29:08 +01:00
sin
f7e59b780f
Update TODO - remove eject
2013-10-14 12:16:45 +01:00
sin
040ec4039c
Allow ubase-box to be called as ubase-box tool args...
2013-10-08 23:37:55 +01:00
sin
7078dba42d
Update README
2013-10-08 17:11:40 +01:00
sin
85a0e49c33
Use utmpx instead of utmp
...
If your utmp files are generated with programs linked against glibc
then musl-libc might not be able to parse the records correctly. This is
because the fields `ut_session' and `ut_tv' must be the same size when
compiled in x86 and x86_64. This is a requirement by glibc that musl does
not fulfil for good reasons.
2013-10-08 16:49:40 +01:00
sin
c0ae036bd2
Be consistent and use *argv[]
2013-10-07 20:41:30 +01:00
sin
5b51cbaf9a
Remove su from TODO - should normally live in sbase
2013-10-07 20:31:17 +01:00
s-p-k
1b31acce48
Exit with EXIT_SUCCESS in dmesg.c cases
2013-10-07 20:08:40 +01:00
sin
d017808c80
Do not terminate early on a umount failure
2013-10-07 19:18:38 +01:00
sin
262c1d768e
Add s-p-k to LICENSE
2013-10-07 19:17:24 +01:00
s-p-k
e340e1373e
exit with EXIT_SUCCESS/EXIT_FAILURE
2013-10-07 19:15:00 +01:00
sin
64744bd6f1
Remove stat(1) - this now lives in sbase
2013-09-29 16:35:32 +01:00
sin
83390f4893
Replace VERSION in manpages with the actual version
2013-09-29 12:48:50 +01:00
sin
921631a3a9
If ws_col is zero just dump the entire buffer
2013-09-25 12:10:46 +01:00
sin
efe687ef94
Update TODO
2013-09-23 16:59:53 +01:00
sin
edc16fcafb
Forgot to update usage line for dmesg(1)
2013-09-23 15:25:11 +01:00
sin
4ce785f36e
Add support for changing the console level in dmesg(1)
2013-09-23 15:13:16 +01:00
sin
301044f834
Update TODO
2013-09-23 13:13:29 +01:00
sin
7763d75d7a
Correct function name in error
2013-09-17 16:44:45 +01:00
sin
d8a51e73b9
Add support for rebooting the system through halt
...
Remove reboot
2013-09-17 16:34:26 +01:00
sin
450f930c17
Use /var/run/utmp for now
...
Musl-libc seems to define that to /dev/null/utmp
2013-09-16 15:58:44 +01:00
sin
713f1cfdb2
Handle correctly the -n option for mount and umount
2013-09-06 11:01:03 +01:00
sin
7f7c3f29e9
Don't use 'tty/' rather use 'tty'
2013-09-06 10:29:00 +01:00
sin
35bff9489e
Use ferror() if fgets() returns NULL
2013-09-05 09:53:39 +01:00
sin
0c0a191fcb
Fix tcc target in config.mk
2013-09-04 13:52:19 +01:00
sin
85de80425c
Update TODO
2013-09-04 13:48:28 +01:00
sin
a0858fa9e8
Do not use hard-coded values in halt.c and reboot.c
2013-09-04 13:47:05 +01:00
sin
1a090bf1eb
Fix eject(1) so we can specify a device name
2013-09-04 13:34:20 +01:00