mirror of
https://codeberg.org/landley/toybox.git
synced 2026-01-26 14:13:25 +00:00
Temporarily un-promote passwd.c until the lib/password.c rewrite
gets waaaay more testing. (And migrating to internal hash functions since glibc 2.38 decided to stop supporting posix crypt().)
This commit is contained in:
parent
2c36636377
commit
f614f4b930
@ -9,7 +9,7 @@ USE_PASSWD(NEWTOY(passwd, ">1a:dlu", TOYFLAG_STAYROOT|TOYFLAG_USR|TOYFLAG_BIN))
|
||||
|
||||
config PASSWD
|
||||
bool "passwd"
|
||||
default y
|
||||
default n
|
||||
help
|
||||
usage: passwd [-a ALGO] [-dlu] [USER]
|
||||
|
||||
@ -56,7 +56,7 @@ void passwd_main(void)
|
||||
uid_t myuid;
|
||||
struct passwd *pw = 0;
|
||||
struct spwd *sp;
|
||||
char *pass, *name, *encrypted = 0, salt[MAX_SALT_LEN];
|
||||
char *pass, *name, *encrypted = 0, salt[32];
|
||||
|
||||
// If we're root or not -lud, load specified user. Exit if not allowed.
|
||||
if (!(myuid = getuid()) || !(toys.optflags&(FLAG_l|FLAG_u|FLAG_d))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user