]> granicus.if.org Git - sudo/commitdiff
minor change to first line printed in -l mode
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 26 Aug 1999 09:10:50 +0000 (09:10 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 26 Aug 1999 09:10:50 +0000 (09:10 +0000)
parse.yacc
sudo.tab.c

index c324ece9a07f32c97d25bac076d4ab126fd95f86..0f056312b04e6ce623a0d9efb5dadb4a9413ee15 100644 (file)
@@ -925,7 +925,8 @@ list_matches()
     char *p;
     struct generic_alias *ga, key;
 
-    (void) puts("You may run the following commands on this host:");
+    (void) printf("User %s may run the following commands on this host:\n",
+       user_name);
     for (i = 0; i < cm_list_len; i++) {
 
        /* Print the runas list. */
index 24b511a5209c23ad20095dfba8fe0c5a7754c2d8..d6ee7e28f2e38f2a73f079c544c55c476541dd0d 100644 (file)
@@ -696,7 +696,8 @@ list_matches()
     char *p;
     struct generic_alias *ga, key;
 
-    (void) puts("You may run the following commands on this host:");
+    (void) printf("User %s may run the following commands on this host:\n",
+       user_name);
     for (i = 0; i < cm_list_len; i++) {
 
        /* Print the runas list. */
@@ -882,7 +883,7 @@ init_parser()
     if (printmatches == TRUE)
        expand_match_list();
 }
-#line 886 "sudo.tab.c"
+#line 887 "sudo.tab.c"
 /* allocate initial stack or double stack size, up to YYMAXDEPTH */
 #if defined(__cplusplus) || __STDC__
 static int yygrowstack(void)
@@ -1668,7 +1669,7 @@ case 74:
                            yyval.BOOLEAN = TRUE;
                        }
 break;
-#line 1672 "sudo.tab.c"
+#line 1673 "sudo.tab.c"
     }
     yyssp -= yym;
     yystate = *yyssp;