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
Carlos J. Torres
99a95f2734
add -a flag to enable all swap devices unless noauto opt is set
2014-02-09 11:08:17 +00:00
sin
30824954f8
Add ctrlaltdel tool
2014-02-07 16:38:53 +00:00
sin
d2815a5aa6
Update TODO - add getty and login
2014-02-06 18:02:44 +00:00
sin
40b0613f1b
mknod(1) is now in ubase not sbase so update manpage
2014-01-30 16:24:10 +00:00
sin
9dbc997058
Import stat(1) from sbase
...
This utility uses major()/minor() which are not portable. It
belongs in ubase.
2014-01-30 16:24:03 +00:00
sin
1f7b76f6f2
Import mknod(1) from sbase
...
mknod(1) is not POSIX and it is not portable so it should be
in ubase instead of sbase.
2014-01-28 16:52:37 +00:00
sin
f4d650e35d
Add Jakob Kramer to LICENSE
2014-01-25 22:38:47 +00:00
sin
5b0d03acc6
Free minfo table
2014-01-25 22:34:30 +00:00
sin
4040857074
Remove unused header from dmesg(1)
2014-01-25 22:31:31 +00:00
sin
f3a9b7138e
Rename __ARG_H__ to ARG_H__
...
__* is reserved so do not use it.
2013-11-25 21:33:58 +00:00
sin
34ea6ae10a
Add support for obsolete -NUM arguments in arg.h
...
Fix naming, _brk, _argc and _argv are reserved for the
implementation.
Thanks to nsz@port70.net for reporting this, the mail excerpt below.
"actually __.* and _[A-Z].* are reserved for any usage and _.* is
reserved for file scope identifiers"
We just rename them to brk_, argc_ and argv_.
2013-11-14 10:48:40 +00:00
sin
a42f909362
Rename brk' to
_brk' to avoid polluting the namespace
2013-11-13 11:58:31 +00:00
sin
57e7137a3a
Add passwd(1) to TODO
2013-11-12 13:22:54 +00:00
sin
a4b84fbe83
No need to use USED() in arg.h for sbase
...
Tested on Linux and OpenBSD (with gcc and pcc).
2013-11-09 16:33:50 +00:00
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