sin
88c61c17e8
Check some more ioctl() calls for errors
2014-06-28 11:29:15 +01:00
sin
debcf4447d
Add readahead(8)
2014-06-27 17:07:56 +01:00
sin
32efa14595
Fix switch_root delete_content()
2014-06-27 12:55:33 +01:00
sin
941ffd2aed
Bail out on path truncation
2014-06-27 11:52:17 +01:00
sin
b5c3bcda7d
Ensure that path[0] == '\0' upon entry to delete_content()
...
As a quick fix, staticise path to ensure that it is zero-filled
upon initial entry to the function.
In rare cases there's a possible buffer overflow and/or path
mess up on the first call to strlcat() with path[0] != '\0'.
The proper fix is to utilize util/recurse.c but the traversal
order cannot be specified at the moment.
Expect a better fix in the future.
2014-06-27 11:52:10 +01:00
sin
32bc548228
Update program list in TODO
2014-06-26 16:42:58 +01:00
sin
9a0cf7c359
Add a misc section in TODO
2014-06-26 16:39:51 +01:00
sin
36049e2925
Add more programs to TODO
2014-06-26 16:33:48 +01:00
sin
23678b96cd
Check FIFREEZE/FITHAW ioctl for failure
2014-06-26 16:26:20 +01:00
sin
c88ba3750e
Add freeramdisk(8)
2014-06-26 16:26:14 +01:00
sin
35a9479141
Style fix for insmod.8
2014-06-26 16:09:01 +01:00
sin
c1a96ddb4c
Add fsfreeze.8
2014-06-26 16:07:11 +01:00
sin
6b83c2ce92
Fix missing paren
2014-06-14 20:40:40 +01:00
sin
5d85bb0cfe
Add fsfreeze(8)
2014-06-14 16:49:43 +01:00
sin
816199471f
Replace fgets() with agetline()
2014-06-14 13:15:03 +01:00
sin
191cc71cee
sysctl: Add support for loading key:value pairs from file
2014-06-13 15:25:33 +01:00
sin
db0ea785f0
Implement -g and -u for id(1)
2014-06-11 15:47:23 +01:00
sin
d3e332c72d
Ensure a select() failure is properly signalled to the caller
2014-06-11 13:08:16 +01:00
sin
d2c215f9ab
Re-order some code in dd(1)
2014-06-11 13:05:12 +01:00
sin
0ca8e52bc1
Use select() in dd(1)
...
Avoid blocking in a call to splice() when no input is available.
We can now break out of dd using ^C even if the input is coming from
/dev/stdin.
Use tabs instead of spaces.
2014-06-11 13:02:58 +01:00
sin
c94dfdc99d
Update dd usage
2014-06-11 12:00:23 +01:00
sin
c80061b08f
Add dd(1) manpage
...
Formatting is a bit weird, will need fixing.
2014-06-11 11:54:38 +01:00
sin
3754c402ca
Fix dd(1) usage line
2014-06-11 11:54:32 +01:00
sin
924fc8449b
Disable core dumps in case passwd(1) crashes
...
Avoids leaking the shadow db.
2014-06-10 11:44:33 +01:00
sin
5eeef920f0
Add password cipher type in config.def.h - default to SHA-512
2014-06-09 16:51:59 +01:00
sin
ed5167e2c1
Add passwd.1 to MAN1
2014-06-09 16:47:08 +01:00
sin
5980da83e7
Add passwd manpage
2014-06-09 16:44:47 +01:00
sin
60500e376a
Print "incorrect password" when checking empty passwords as well
2014-06-09 13:08:18 +01:00
sin
d745889805
Fix pw_check() semantics and style - it is now similar to pw_copy()
2014-06-09 13:05:24 +01:00
sin
78192e87d9
Simplify a bit pw_check()
2014-06-09 12:57:45 +01:00
sin
1b6fab85d6
Fix passwd semantics
2014-06-09 12:52:49 +01:00
sin
834279b4a9
If root starts passwd don't ask for current password
2014-06-09 12:37:54 +01:00
sin
4c38dffade
If the user password is empty check it against the provided pass as well
2014-06-09 12:13:22 +01:00
sin
4b05ca07cc
Port login(1) to pw_check()
2014-06-09 11:13:12 +01:00
sin
12083d49e5
Port su(1) to use pw_check()
2014-06-09 11:13:07 +01:00
sin
77a2f9f92c
Add initial pw_check()
2014-06-09 11:12:53 +01:00
Hiltjo Posthuma
1abf7518ad
mount: remove stat, not needed since we use realpath
2014-06-07 19:16:50 +01:00
Hiltjo Posthuma
01bbe2820a
mount: resolve path given
...
this allows: cd /mnt; mount somename.
2014-06-07 19:16:42 +01:00
sin
9716ca2c7a
OK we had our fun, now remove the randquotes from su.c
2014-06-05 17:43:11 +01:00
sin
2ea51e8cd8
Print errors on the next line
2014-06-05 17:20:58 +01:00
sin
f628b72747
Allow the user to change from an empty password
...
Default to SHA-512.
2014-06-05 17:17:18 +01:00
sin
abbb8fffc7
Remember to free the agetline() buffer
2014-06-05 17:00:39 +01:00
sin
1ec996439a
Add initial implementation of passwd(1)
...
No shadow support yet.
2014-06-05 16:57:27 +01:00
sin
d3709f91a2
the shell field in passwd is optional - fallback to /bin/sh
2014-06-05 12:18:27 +01:00
FRIGN
5a2f3c85b7
Bring back some C89/C90 elements
...
dmesg: don't use VLAs
getty, su: no need to use compound literals
2014-06-05 11:33:34 +01:00
sin
8ab8a4cad0
Staticise copy_splice()
2014-06-04 20:50:43 +01:00
sin
ba3366646a
Use %1023s as opposed to %1023c
...
Using %1023c doesn't work with musl.
2014-06-04 15:36:18 +01:00
sin
8441c95a2f
define -D_XOPEN_SOURCE in config.mk
...
Remove from su.c and login.c
2014-06-04 15:16:24 +01:00
sin
1b28deba3d
Add -D_FILE_OFFSET_BITS=64 to config.mk
...
stat() will fail if compiled on a 32-bit platform and the file
size is greater than (1<<31)-1 bytes.
2014-06-04 15:12:58 +01:00
sin
e2c6ab9a76
Simplify print_stat()
2014-06-04 13:53:10 +01:00