]> granicus.if.org Git - shadow/commitdiff
use_system_pw_file and use_system_spw_file were not reset.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 1 Jan 2008 17:43:18 +0000 (17:43 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 1 Jan 2008 17:43:18 +0000 (17:43 +0000)
src/pwck.c

index 66cc016b23449f68a61b1f6dab490ff8e181ba60..3c6d3d82ad6f99cf2bbe1de0f1051cb6aa5f1958 100644 (file)
@@ -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 ();
 }