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
path: root/winsup
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
parent6510edf4bc4b61b49272970d1a311492e5b99285 (diff)
* mkpasswd.c (main): Avoid printing system accounts when a single user name has
been requested.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/mkpasswd.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 583304810..5172ccb04 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,5 +1,10 @@
2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
+ * mkpasswd.c (main): Avoid printing system accounts when a single user
+ name has been requested.
+
+2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
+
* Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet
ld warnings.
* mkgroup.c: Change all global variables and most functions to static.
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);