From cf83f019b401326ba3cce9530bb81dfbf368358d Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 20 Feb 2019 22:38:23 -0800 Subject: [PATCH] su: fix the command line syntax. Test: `su --help` Change-Id: I08f2e897b6d472f1748574aa162555ac8adfc05e --- su/su.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/su/su.cpp b/su/su.cpp index f3e4ff03..1a1ab6bf 100644 --- a/su/su.cpp +++ b/su/su.cpp @@ -87,12 +87,12 @@ int main(int argc, char** argv) { ++argv; if (*argv && (strcmp(*argv, "--help") == 0 || strcmp(*argv, "-h") == 0)) { fprintf(stderr, - "usage: su [UID[,GID[,GID2]...]] [COMMAND [ARG...]]\n" + "usage: su [WHO [COMMAND...]]\n" "\n" - "Switch to WHO (default 'root') and run the given command (default sh).\n" + "Switch to WHO (default 'root') and run the given COMMAND (default sh).\n" "\n" - "where WHO is a comma-separated list of user, group,\n" - "and supplementary groups in that order.\n" + "WHO is a comma-separated list of user, group, and supplementary groups\n" + "in that order.\n" "\n"); return 0; } -- 2.11.0