diff options
author | erik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-04-19 03:38:01 +0000 |
---|---|---|
committer | erik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-04-19 03:38:01 +0000 |
commit | bc32b0e8232e440778f2159539043d6d5ea79b01 (patch) | |
tree | d785d0e01aed700b2af875e6e11e768a1cb030b5 /procps | |
parent | 5cb9b9003768c34178d0d13bda5c6d530c915c15 (diff) | |
download | busybox-w32-bc32b0e8232e440778f2159539043d6d5ea79b01.tar.gz busybox-w32-bc32b0e8232e440778f2159539043d6d5ea79b01.tar.bz2 busybox-w32-bc32b0e8232e440778f2159539043d6d5ea79b01.zip |
make ps accept (and ignore) all options (--help works of course).
tar now works with or without the leading "-" on the options.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@482 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'procps')
-rw-r--r-- | procps/ps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c index 1b3f4fb6c..8d59700fd 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -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) |