mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
do not hardcode the editor name in the message displayed by "-r"
when there are no files to recover as this flag is used by ex(1) and view(1) too. problem found by jsing@, Sven Verdoolaege did some suggestions to improve its portability. diff committed upstream. ok jsing@
This commit is contained in:
parent
5fd0b4546c
commit
c83f110083
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: recover.c,v 1.13 2007/09/14 14:29:20 chl Exp $ */
|
||||
/* $OpenBSD: recover.c,v 1.14 2008/09/25 11:37:03 sobrado Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994
|
||||
@ -582,7 +582,7 @@ rcv_list(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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user