Whamcloud - gitweb
b=4834
[fs/lustre-release.git] / lustre / tests / runas.c
index 91c9c7f..f36a9ff 100644 (file)
@@ -18,7 +18,7 @@
 #endif
 
 static const char usage[] =
-"Usage: %s -u user_id [-g grp_id ] [ -G ] command\n"
+"Usage: %s -u user_id [-g grp_id] [-G[gid0,gid1,...]] command\n"
 "  -u user_id           switch to UID user_id\n"
 "  -g grp_id            switch to GID grp_id\n"
 "  -G[gid0,gid1,...]    set supplementary groups\n";
@@ -137,7 +137,8 @@ int main(int argc, char **argv)
 
         // The command to be run
         execvp(my_argv[0], my_argv);
-        fprintf(stderr, "execvp fails running %s\n", my_argv[0]);
+        fprintf(stderr, "execvp fails running %s (%d): %s\n", my_argv[0],
+                errno, strerror(errno));
         exit(-1);
 }