summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
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 */