summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-11-16 18:51:59 +0000
committerderaadt <deraadt@openbsd.org>1997-11-16 18:51:59 +0000
commit80642c37e50c9c0219862e589f10e0c346ed96e5 (patch)
treea257f7966bcda91e1c0db9bce87c732bc62dfd5e
parentfix error message (diff)
downloadwireguard-openbsd-80642c37e50c9c0219862e589f10e0c346ed96e5.tar.xz
wireguard-openbsd-80642c37e50c9c0219862e589f10e0c346ed96e5.zip
report correct filename in error msg; netbsd
-rw-r--r--usr.bin/oldrdist/docmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/oldrdist/docmd.c b/usr.bin/oldrdist/docmd.c
index e255bdc1344..2717e5c8e9f 100644
--- a/usr.bin/oldrdist/docmd.c
+++ b/usr.bin/oldrdist/docmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: docmd.c,v 1.9 1997/11/05 09:43:39 deraadt Exp $ */
+/* $OpenBSD: docmd.c,v 1.10 1997/11/16 18:51:59 deraadt Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -35,7 +35,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)docmd.c 8.1 (Berkeley) 6/9/93"; */
-static char *rcsid = "$OpenBSD: docmd.c,v 1.9 1997/11/05 09:43:39 deraadt Exp $";
+static char *rcsid = "$OpenBSD: docmd.c,v 1.10 1997/11/16 18:51:59 deraadt Exp $";
#endif /* not lint */
#include "defs.h"
@@ -401,7 +401,7 @@ dodcolon(filev, files, stamp, cmds)
if ((fd = open(tempfile, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0 ||
(tfp = fdopen(fd, "w")) == NULL) {
- error("%s: %s\n", stamp, strerror(errno));
+ error("%s: %s\n", tempfile, strerror(errno));
if (fd >= 0)
(void) close(fd);
return;