sin
6ea2b1aa53
Use estrtoul() in dd(1)
...
Allow specifications in hex and octal as well.
2014-06-04 13:13:00 +01:00
sin
144a893268
Ensure a proper exit code
...
If copy() fails at least print stats.
2014-06-04 13:06:46 +01:00
sin
7fa098ace6
Use eprintf() wherever possible, add -h to options
2014-06-04 13:04:45 +01:00
sin
5c66e30060
Nuke a harmless warning
2014-06-04 12:19:46 +01:00
sin
207ba019fd
Add initial version of dd(1).
...
This code was written by Sebastian Krahmer and you can find
the original version at https://github.com/stealth/odd.git .
Permission has been granted to release this code under MIT/X
for ubase. It has been simplified by sin@2f30.org .
Thanks Sebastian!
2014-06-04 11:47:38 +01:00
sin
d2dfc053c1
Clarify that hwclock(8) uses /dev/rtc as the default devnode
2014-06-04 11:01:00 +01:00
sin
01fa8eec58
Fix login(1) -p semantincs once and for all
2014-06-03 18:57:37 +01:00
sin
d522589a11
Clarify in login.1 that TERM is set as well
2014-06-03 18:23:34 +01:00
sin
916b7fed1e
Set TERM to linux if needed for su and login
2014-06-03 18:21:05 +01:00
sin
8216a97519
Print a warning for -w to let the user know that we are assuming UTC
2014-06-03 16:29:22 +01:00
sin
0d09df4645
Add hwclock(8) manpage
2014-06-03 16:25:18 +01:00
sin
5bbc67aa96
Allow to specify the rtc devnode for hwclock(8)
2014-06-03 16:09:20 +01:00
sin
5836145a5c
Implement -s support for hwclock(8)
...
Rename some functions as well.
2014-06-03 15:58:08 +01:00
sin
cd0c6cf5b8
Add hwclock in README
2014-06-03 15:46:12 +01:00
sin
5dd629fd42
Remove -pedantic from default config.mk
2014-06-03 15:37:46 +01:00
sin
e3d7ffa05c
Use rtc_time
2014-06-03 15:15:21 +01:00
sin
dacfb76c75
Add initial version of hwclock(8)
2014-06-03 14:52:14 +01:00
sin
c4051021c9
Add hwclock to TODO
2014-06-03 12:49:48 +01:00
sin
df6f793d57
Remove login from TODO
2014-06-03 12:42:52 +01:00
sin
0daa5a8206
Update TODO
2014-06-03 12:42:15 +01:00
sin
604b5de69d
Use -std=c99 and -pedantic in default config.mk
2014-06-03 12:39:22 +01:00
sin
da215823a3
Inform the user if exec*() fails
2014-06-03 12:34:39 +01:00
sin
323f6be8ef
Use correction function name in error message
2014-06-03 12:34:32 +01:00
sin
b8dbf05ce7
Simplify dologin() in su(1)
...
Exec the user's shell with -l to fake a login.
2014-06-03 12:28:50 +01:00
sin
2f10d16b9f
Remove explicit_bzero() calls
2014-06-03 12:18:19 +01:00
sin
bd4b6f4e47
Add /etc/passwd support to su(1)
2014-06-03 12:15:24 +01:00
sin
e5d539a76f
Remove BUGS section from login.1 - we now have shadow support
2014-06-03 11:08:00 +01:00
sin
0de4f5fd9f
I am stupid.
2014-06-03 11:03:25 +01:00
sin
bc709278b6
Add shadow support to login(1)
...
Also remember to really preserve the environment.
2014-06-03 11:00:44 +01:00
sin
c4c1feac2a
Check if stdin is a tty
...
Some indentation changes as well.
2014-06-03 10:50:41 +01:00
sin
b6007ba92b
Be consistent with login(1) usage
2014-06-02 17:38:12 +01:00
sin
c7b6aacb5c
/bin is good enough
2014-06-02 17:18:51 +01:00
sin
3046b513fc
use lowercase for errors
2014-06-02 17:15:41 +01:00
FRIGN
af65094dbe
Simplify login
...
Remove some unnecessary local values, simplify the exec-call at the end
(we don't need the separate array) and print clearer and more consistent
error-messages.
2014-06-02 17:15:36 +01:00
sin
aaea1e9ff7
Print getpass() errors on a newline
2014-06-02 17:06:38 +01:00
sin
9146cebd97
Add login(1) to README
2014-06-02 16:54:09 +01:00
sin
d068541779
Not all password entries start with '$'
...
Respect old DES :)
2014-06-02 16:51:11 +01:00
sin
1988901b7d
Add login(1) manpage
2014-06-02 16:45:29 +01:00
sin
6f7995b65a
Consistent error reporting
2014-06-02 16:20:02 +01:00
sin
e992efc8fb
Remember to #define _XOPEN_SOURCE for crypt()
2014-06-02 16:19:52 +01:00
sin
0a3ed68d25
Add initial implementation of login(1)
...
No shadow support atm.
2014-06-02 16:17:33 +01:00
sin
5322e83da0
str* is in the reserved namespace, rename to replacestr()
2014-05-06 13:40:37 +01:00
sin
fffdb91ada
First release of ubase!
2014-05-01 12:06:14 +01:00
Jakob Kramer
b6e4a367e2
su: zero out encrypted passwords
2014-04-30 13:25:33 +01:00
sin
5b9ea69b08
Sweep through code and replace malloc() with emalloc() etc.
2014-04-30 13:12:17 +01:00
sin
550b655d98
Add ealloc.c with wrappers for emalloc() and friends
...
Re-organize util.h as well.
2014-04-30 13:11:57 +01:00
sin
49f1dc0ebe
Add LICENSE header in explicit_bzero.c
2014-04-30 12:32:22 +01:00
sin
24d5c07d29
Use explicit_bzero() in su
2014-04-30 12:30:15 +01:00
sin
1920516abf
Add explicit_bzero() in util/
2014-04-30 12:30:10 +01:00
sin
8f4c0f2a8e
Add random replies for failed password attempts in su(1)
2014-04-22 16:40:16 +01:00