From: nekral-guest Date: Tue, 1 Jan 2008 17:43:18 +0000 (+0000) Subject: use_system_pw_file and use_system_spw_file were not reset. X-Git-Tag: 4.1.1~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94266e13605ddfc1910144314533c59f7e46bbee;p=shadow use_system_pw_file and use_system_spw_file were not reset. --- diff --git a/src/pwck.c b/src/pwck.c index 66cc016b..3c6d3d82 100644 --- a/src/pwck.c +++ b/src/pwck.c @@ -142,11 +142,13 @@ static void process_flags (int argc, char **argv) if (optind != argc) { pwd_file = argv[optind]; pw_name (pwd_file); + use_system_pw_file = 0; } if (optind + 2 == argc) { spw_file = argv[optind + 1]; spw_name (spw_file); is_shadow = 1; + use_system_spw_file = 0; } else if (optind == argc) is_shadow = spw_file_present (); }