summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-04-22 18:32:10 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-04-22 18:32:10 +0000
commit2db2c7ac6718f65ccc4213ac07ead59440802430 (patch)
tree7b8180b330fa7108893259eeee3033dbf398ebaa /usr.bin
parent680ade077116c51ff262d82b4aa1cab5c18473f8 (diff)
fix thinko from tb@'s commit.
okay tb@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 4412e9acb43..2eef3a2a040 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.122 2017/04/20 03:04:11 dlg Exp $ */
+/* $OpenBSD: main.c,v 1.123 2019/04/22 18:32:09 espie Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
@@ -513,10 +513,10 @@ figure_out_CURDIR()
/* curdir is cwd... */
cwd = dogetcwd();
if (cwd == NULL)
- err(2, "%s", strerror(errno));
+ err(2, "getcwd");
if (stat(cwd, &sa) == -1)
- err(2, "%s: %s", cwd, strerror(errno));
+ err(2, "%s", cwd);
/* ...but we can use the alias $PWD if we can prove it is the same
* directory */