]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r204761:
authorjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Jul 2010 12:04:29 +0000 (12:04 +0000)
committerjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Jul 2010 12:04:29 +0000 (12:04 +0000)
commit95bf163e426ac2f728da3ca98b6ff26e0326f849
tree268ff63af9dacbd4266746061d21ccc6daad378f
parent1809cc7ae1f7634f76c2f3b4bb9bf0de1a9f39de
MFC r204761:

- 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

git-svn-id: svn://svn.freebsd.org/base/stable/8@210642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/regression/usr.bin/Makefile
tools/regression/usr.bin/apply/Makefile [new file with mode: 0644]
tools/regression/usr.bin/apply/regress.00.in [new file with mode: 0644]
tools/regression/usr.bin/apply/regress.00.out [new file with mode: 0644]
tools/regression/usr.bin/apply/regress.01.out [new file with mode: 0644]
tools/regression/usr.bin/apply/regress.01.sh [new file with mode: 0644]
tools/regression/usr.bin/apply/regress.sh [new file with mode: 0644]
tools/regression/usr.bin/apply/regress.t [new file with mode: 0644]
usr.bin/apply/Makefile
usr.bin/apply/apply.c