diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-08-18 12:52:49 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-08-18 12:52:49 +0400 |
commit | 096df1774b9f4def3d04278b3aab51f065039e34 (patch) | |
tree | aa79050f40f4d351f965d76a6147173c9c941b3d /winsup/utils/mkpasswd.c | |
parent | 01dd3162ff90f8c337257f2a489e8c59decdbcab (diff) |
* mkgroup.c (main): Keep correctly track of optional arguments.
* mkpasswd.c (main): Ditto.
Diffstat (limited to 'winsup/utils/mkpasswd.c')
-rw-r--r-- | winsup/utils/mkpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c index d7b999967..70bee353d 100644 --- a/winsup/utils/mkpasswd.c +++ b/winsup/utils/mkpasswd.c @@ -758,7 +758,7 @@ main (int argc, char **argv) domlist[print_domlist].domain = (c == 'd' || c == 'D'); opt = optarg ?: argv[optind] && argv[optind][0] != '-' ? argv[optind] : NULL; - if (opt == argv[optind]) + if (argv[optind] && opt == argv[optind]) ++optional_args; for (i = 0; i < print_domlist; ++i) if (domlist[i].domain == domlist[print_domlist].domain |