From 328b090f29853cd45be2ed7453f473634af18239 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 25 Aug 2008 09:38:14 +0000 Subject: * mkgroup.c (enum_local_groups): Don't skip printing groups when print_current is set and group SID is not curr_pgrp. (enum_groups): Ditto. (main): Fix condition when SYSTEM group gets printed. * mkpasswd.c (enum_users): Don't skip printing users when print_current is set and user SID is not curr_user. (main): Allow printing standard accounts even when print_current is set. --- winsup/utils/mkpasswd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'winsup/utils/mkpasswd.c') diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c index 70bee353d..b341b64c3 100644 --- a/winsup/utils/mkpasswd.c +++ b/winsup/utils/mkpasswd.c @@ -511,8 +511,6 @@ enum_users (BOOL domain, domlist_t *dom_or_machine, const char *sep, /* fall through */; else if (EqualSid (curr_user.psid, psid)) got_curr_user = TRUE; - else - continue; printf ("%ls%s%ls:unused:%lu:%lu:%ls%sU-%ls\\%ls,%s:%s:/bin/bash\n", with_dom ? domain_name : L"", @@ -873,7 +871,7 @@ skip: ? domlist[i].id_offset : off : 0; if (!domlist[i].domain && domlist[i].str && print_unix) enum_unix_users (domlist + i, sep_char, my_off, print_unix); - if (!my_off && !print_current && !disp_username) + if (!my_off && !disp_username) enum_std_accounts (); enum_users (domlist[i].domain, domlist + i, sep_char, print_cygpath, passed_home_path, my_off, disp_username, print_current); -- cgit v1.2.3