summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c
index 1b3f4fb..8d59700 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -128,8 +128,9 @@ extern int ps_main(int argc, char **argv)
- if (argc > 1 && **(argv + 1) == '-')
+ if (argc > 1 && strcmp(argv[1], "--help") == 0) {
usage ("ps\n\nReport process status\n\nThis version of ps accepts no options.\n");
+ }
dir = opendir("/proc");
if (!dir)