Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-25 17:26:10 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-25 17:26:10 +0400
commit5bf59c104af94e918ce879352f27b40099bf51be (patch)
treeb76254e73f46e063f9ee0845da5224cf1a3bcfd6 /libbb/update_passwd.c
parentf6b4685691ebe00f28e4f9148a1a255e87b8d312 (diff)
shrink if FEATURE_SHADOWPASSWDS is off
Diffstat (limited to 'libbb/update_passwd.c')
-rw-r--r--libbb/update_passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/update_passwd.c b/libbb/update_passwd.c
index 35b89a5b4..aa1e2ed08 100644
--- 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+");