projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b4685
)
shrink if FEATURE_SHADOWPASSWDS is off
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 25 Apr 2009 13:26:10 +0000
(13:26 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 25 Apr 2009 13:26:10 +0000
(13:26 -0000)
libbb/update_passwd.c
patch
|
blob
|
history
diff --git
a/libbb/update_passwd.c
b/libbb/update_passwd.c
index 35b89a5b40f5a89fee5e0873d508c549df0370ac..aa1e2ed084e59098cb696d2aad3eaa38e33b0635 100644
(file)
--- a/
libbb/update_passwd.c
+++ b/
libbb/update_passwd.c
@@
-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+");