summaryrefslogtreecommitdiff
path: root/usr.bin/patch/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-05-16 15:22:47 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-05-16 15:22:47 +0000
commit18d0f28f3d222a391f075cc8a7a2e5bbbf96e3f1 (patch)
tree1af537b4cec752a4a4ae1ab4f225eced233e4c6f /usr.bin/patch/Makefile
parentb9566cd359bb8f1aac7fcc701efc7befe12fd7d4 (diff)
Do not call out mkdir -p, but reuse the code from mkdir(1).
Removes the possibility of nasty stuff happening thanks to unquoted arguments in system(1). Also plug a small memory leak. Problems noticed by Lionel Fourquaud. okay millert@, deraadt@
Diffstat (limited to 'usr.bin/patch/Makefile')
-rw-r--r--usr.bin/patch/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/Makefile b/usr.bin/patch/Makefile
index 9c54a925f50..d7071a4a068 100644
--- a/usr.bin/patch/Makefile
+++ b/usr.bin/patch/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.3 2003/07/18 02:00:09 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 2005/05/16 15:22:46 espie Exp $
PROG= patch
-SRCS= patch.c pch.c inp.c util.c backupfile.c
+SRCS= patch.c pch.c inp.c util.c backupfile.c mkpath.c
.include <bsd.prog.mk>