aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/apply/Makefile
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2010-03-05 15:23:01 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2010-03-05 15:23:01 +0000
commit12794df244716221a5b590e808faa554712d8382 (patch)
tree411318be07df3cec7aa3f6855cc1e38c3aea5ee5 /usr.bin/apply/Makefile
parent333fb1c9962a8d3b2fb6ff0a3cf7eec94c892b2f (diff)
- Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.
snprintf(3) doesn't set errno in the tested cases. - If the same argument reference (for example %1) was specified more than once, the command didn't necessarily fit to the final command buffer. Fix this using a dynamic sbuf buffer. Add a few regression tests for the case. PR: bin/95079 No objections: freebsd-hackers
Notes
Notes: svn path=/head/; revision=204761
Diffstat (limited to 'usr.bin/apply/Makefile')
-rw-r--r--usr.bin/apply/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/apply/Makefile b/usr.bin/apply/Makefile
index ca0f10a2fce8..c23d928a8838 100644
--- a/usr.bin/apply/Makefile
+++ b/usr.bin/apply/Makefile
@@ -2,5 +2,7 @@
# $FreeBSD$
PROG= apply
+DPADD= ${LIBSBUF}
+LDADD= -lsbuf
.include <bsd.prog.mk>