]> granicus.if.org Git - strace/commitdiff
2007-07-05 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 5 Jul 2007 19:31:49 +0000 (19:31 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 5 Jul 2007 19:31:49 +0000 (19:31 +0000)
* strace.c (main): Fix error message for unfound -u user.
From Srinivasa Ds <srinivasa@in.ibm.com>.

strace.c

index ce982dc6e5fb7f0835cfbb3012a9942ff54539e4..6ee5b6a730f0a829e2d25524fdf88a9c138f8402 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -766,7 +766,7 @@ char *argv[];
                }
                if ((pent = getpwnam(username)) == NULL) {
                        fprintf(stderr, "%s: cannot find user `%s'\n",
-                               progname, optarg);
+                               progname, username);
                        exit(1);
                }
                run_uid = pent->pw_uid;