From 7911a78716e63b6c0ad649d58156fe9de3fa8067 Mon Sep 17 00:00:00 2001 From: Igor Sobrado Date: Wed, 24 Sep 2008 16:22:04 +0200 Subject: [PATCH] Do not hardcode program name in -r output Do not hardcode the program name in the message printed by -r when there are no files to recover, as this flag can be used in ex(1) and view(1) too. Problem reported by Joel Sing. --- common/recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/recover.c b/common/recover.c index c4c552e9..b6746956 100644 --- a/common/recover.c +++ b/common/recover.c @@ -565,7 +565,7 @@ rcv_list(SCR *sp) next: (void)fclose(fp); } if (found == 0) - (void)printf("vi: no files to recover.\n"); + (void)printf("%s: No files to recover\n", sp->gp->progname); (void)closedir(dirp); return (0); } -- 2.11.4.GIT