From: Igor Sobrado Date: Wed, 24 Sep 2008 14:22:04 +0000 (+0200) Subject: Do not hardcode program name in -r output X-Git-Url: https://repo.or.cz/w/nvi.git/commitdiff_plain/7911a78716e63b6c0ad649d58156fe9de3fa8067 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. --- 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); }