mirror of https://github.com/mirror/busybox.git
shrink if FEATURE_SHADOWPASSWDS is off
parent
f6b4685691
commit
5bf59c104a
|
@ -100,7 +100,7 @@ int FAST_FUNC update_passwd(const char *filename,
|
||||||
name = xasprintf("%s:", name);
|
name = xasprintf("%s:", name);
|
||||||
user_len = strlen(name);
|
user_len = strlen(name);
|
||||||
|
|
||||||
if (strstr(filename, "shadow"))
|
if (ENABLE_FEATURE_SHADOWPASSWDS && strstr(filename, "shadow"))
|
||||||
old_fp = fopen(filename, "r+");
|
old_fp = fopen(filename, "r+");
|
||||||
else
|
else
|
||||||
old_fp = fopen_or_warn(filename, "r+");
|
old_fp = fopen_or_warn(filename, "r+");
|
||||||
|
|
Loading…
Reference in New Issue