summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlum <lum@openbsd.org>2012-06-11 18:30:03 +0000
committerlum <lum@openbsd.org>2012-06-11 18:30:03 +0000
commit66032d99fcbe06d947ff5eba2bc92bc4facf61fa (patch)
tree96a82b0e0d168d86a08aac950da0fbb2cf8e9bcd
parentsync (diff)
downloadwireguard-openbsd-66032d99fcbe06d947ff5eba2bc92bc4facf61fa.tar.xz
wireguard-openbsd-66032d99fcbe06d947ff5eba2bc92bc4facf61fa.zip
Change error message to reflect the correct filename: nname is 'New
name' as opposed to tname 'Temp name'
-rw-r--r--usr.bin/mg/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/fileio.c b/usr.bin/mg/fileio.c
index 3c8b0c96f96..4bb9289eb2e 100644
--- a/usr.bin/mg/fileio.c
+++ b/usr.bin/mg/fileio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fileio.c,v 1.89 2012/05/25 04:56:58 lum Exp $ */
+/* $OpenBSD: fileio.c,v 1.90 2012/06/11 18:30:03 lum Exp $ */
/* This file is in the public domain. */
@@ -211,7 +211,7 @@ fbackupfile(const char *fn)
}
if (asprintf(&nname, "%s~", fn) == -1) {
- ewprintf("Can't allocate temp file name : %s", strerror(errno));
+ ewprintf("Can't allocate backup file name : %s", strerror(errno));
return (ABORT);
}