From 12794df244716221a5b590e808faa554712d8382 Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Fri, 5 Mar 2010 15:23:01 +0000 Subject: - 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 --- usr.bin/apply/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/apply/Makefile') 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 -- cgit v1.2.3