Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-08-17 21:00:50 +0400
committerChristopher Faylor <me@cgf.cx>2008-08-17 21:00:50 +0400
commit95141e78352432454a849374c9096d941c484aa5 (patch)
tree534702a12942b9d8a0f09bed65d810961447c082 /winsup/utils/mkpasswd.c
parent6510edf4bc4b61b49272970d1a311492e5b99285 (diff)
* mkpasswd.c (main): Avoid printing system accounts when a single user name has
been requested.
Diffstat (limited to 'winsup/utils/mkpasswd.c')
-rw-r--r--winsup/utils/mkpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c
index 66e81a2cf..305842562 100644
--- a/winsup/utils/mkpasswd.c
+++ b/winsup/utils/mkpasswd.c
@@ -868,7 +868,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)
+ if (!my_off && !print_current && !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);