shrink if FEATURE_SHADOWPASSWDS is off
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 25 Apr 2009 13:26:10 +0000 (13:26 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 25 Apr 2009 13:26:10 +0000 (13:26 -0000)
libbb/update_passwd.c

index 35b89a5b40f5a89fee5e0873d508c549df0370ac..aa1e2ed084e59098cb696d2aad3eaa38e33b0635 100644 (file)
@@ -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+");