* mkpasswd.c (main): Avoid printing system accounts when a single user name has

been requested.
This commit is contained in:
Christopher Faylor 2008-08-17 17:00:50 +00:00
parent 6510edf4bc
commit 95141e7835
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);