summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/mkpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/patch/mkpath.c')
-rw-r--r--usr.bin/patch/mkpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/mkpath.c b/usr.bin/patch/mkpath.c
index 7c0f13fbad4..63d53eccecc 100644
--- a/usr.bin/patch/mkpath.c
+++ b/usr.bin/patch/mkpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkpath.c,v 1.3 2013/11/12 13:51:42 deraadt Exp $ */
+/* $OpenBSD: mkpath.c,v 1.4 2014/05/20 01:25:23 guenther Exp $ */
/*
* Copyright (c) 1983, 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -65,7 +65,7 @@ mkpath(char *path)
return (-1);
}
} else if (!S_ISDIR(sb.st_mode)) {
- warnx("%s: %s", path, strerror(ENOTDIR));
+ warnc(ENOTDIR, "%s", path);
return (-1);
}