diff options
Diffstat (limited to 'src/pwd.c')
-rw-r--r-- | src/pwd.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -306,6 +306,14 @@ main (int argc, char **argv) parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, usage, AUTHORS, (char const *) NULL); + /* The above handles --help and --version. + Since there is no other invocation of getopt, handle `--' here. */ + if (1 < argc && STREQ (argv[1], "--")) + { + --argc; + ++argv; + } + if (1 < argc) error (0, 0, _("ignoring non-option arguments")); |