From: Todd C. Miller Date: Thu, 26 Aug 1999 09:10:50 +0000 (+0000) Subject: minor change to first line printed in -l mode X-Git-Tag: SUDO_1_6_0~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b28160a5dc8b469643675923710af86f4718fdf;p=sudo minor change to first line printed in -l mode --- diff --git a/parse.yacc b/parse.yacc index c324ece9a..0f056312b 100644 --- a/parse.yacc +++ b/parse.yacc @@ -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. */ diff --git a/sudo.tab.c b/sudo.tab.c index 24b511a52..d6ee7e28f 100644 --- a/sudo.tab.c +++ b/sudo.tab.c @@ -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;