diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-19 03:38:01 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-19 03:38:01 +0000 |
commit | a3e57ca7008cbaf612675b9de3dd18109f8150de (patch) | |
tree | d785d0e01aed700b2af875e6e11e768a1cb030b5 /ps.c | |
parent | f13df3752cd5077622201e6b69c71cd7cd5095a4 (diff) | |
download | busybox-w32-a3e57ca7008cbaf612675b9de3dd18109f8150de.tar.gz busybox-w32-a3e57ca7008cbaf612675b9de3dd18109f8150de.tar.bz2 busybox-w32-a3e57ca7008cbaf612675b9de3dd18109f8150de.zip |
make ps accept (and ignore) all options (--help works of course).
tar now works with or without the leading "-" on the options.
-Erik
Diffstat (limited to 'ps.c')
-rw-r--r-- | ps.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -128,8 +128,9 @@ extern int ps_main(int argc, char **argv) | |||
128 | 128 | ||
129 | 129 | ||
130 | 130 | ||
131 | if (argc > 1 && **(argv + 1) == '-') | 131 | if (argc > 1 && strcmp(argv[1], "--help") == 0) { |
132 | usage ("ps\n\nReport process status\n\nThis version of ps accepts no options.\n"); | 132 | usage ("ps\n\nReport process status\n\nThis version of ps accepts no options.\n"); |
133 | } | ||
133 | 134 | ||
134 | dir = opendir("/proc"); | 135 | dir = opendir("/proc"); |
135 | if (!dir) | 136 | if (!dir) |