diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-08-25 13:38:14 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-08-25 13:38:14 +0400 |
commit | 328b090f29853cd45be2ed7453f473634af18239 (patch) | |
tree | 207f2af32085193898aff33fb4093f0e60c11df8 /winsup/utils/mkpasswd.c | |
parent | 576677295f3ddad17c2da9c4fca86a928b27ed70 (diff) |
* 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.
Diffstat (limited to 'winsup/utils/mkpasswd.c')
-rw-r--r-- | winsup/utils/mkpasswd.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |