shrink if FEATURE_SHADOWPASSWDS is off
This commit is contained in:
parent
f6b4685691
commit
5bf59c104a
@ -100,7 +100,7 @@ int FAST_FUNC update_passwd(const char *filename,
|
||||
name = xasprintf("%s:", name);
|
||||
user_len = strlen(name);
|
||||
|
||||
if (strstr(filename, "shadow"))
|
||||
if (ENABLE_FEATURE_SHADOWPASSWDS && strstr(filename, "shadow"))
|
||||
old_fp = fopen(filename, "r+");
|
||||
else
|
||||
old_fp = fopen_or_warn(filename, "r+");
|
||||
|
Loading…
Reference in New Issue
Block a user