summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpvalchev <pvalchev@openbsd.org>2001-05-28 22:41:35 +0000
committerpvalchev <pvalchev@openbsd.org>2001-05-28 22:41:35 +0000
commitef0c16609ac5d2913f8e0511f236d3634a0d4d70 (patch)
treed61174fb9574d823b470373ecec91eb5bedb333d
parentCommonize csu code for elf systems, powerpc now no longer has it's own (diff)
downloadwireguard-openbsd-ef0c16609ac5d2913f8e0511f236d3634a0d4d70.tar.xz
wireguard-openbsd-ef0c16609ac5d2913f8e0511f236d3634a0d4d70.zip
Print SYSERR instead of ERR when recdir does not exist.
Makes the message more useful for the user; from NetBSD, millert@ ok
-rw-r--r--usr.bin/vi/common/recover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/common/recover.c b/usr.bin/vi/common/recover.c
index cd4012a8b77..a61685dd2b2 100644
--- a/usr.bin/vi/common/recover.c
+++ b/usr.bin/vi/common/recover.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: recover.c,v 1.5 2001/01/29 01:58:31 niklas Exp $ */
+/* $OpenBSD: recover.c,v 1.6 2001/05/28 22:41:35 pvalchev Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -610,7 +610,7 @@ rcv_read(sp, frp)
return (1);
rp = O_STR(sp, O_RECDIR);
if ((dirp = opendir(rp)) == NULL) {
- msgq_str(sp, M_ERR, rp, "%s");
+ msgq_str(sp, M_SYSERR, rp, "%s");
return (1);
}