Jaakko Heinonen 12794df244 - 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
2010-03-05 15:23:01 +00:00
..
2010-01-02 10:09:20 +00:00
2010-02-05 18:17:17 +00:00
2010-01-02 10:09:20 +00:00
2010-01-15 16:01:22 +00:00
2010-01-29 14:41:16 +00:00
2010-03-03 21:22:53 +00:00
2009-04-01 08:33:54 +00:00
2010-02-03 21:06:13 +00:00
2010-02-09 10:47:44 +00:00
2010-01-15 16:01:22 +00:00
2010-02-26 09:41:16 +00:00
2009-06-23 23:17:04 +00:00
2009-12-26 00:46:05 +00:00
2010-01-02 10:09:20 +00:00
2010-03-02 16:58:04 +00:00
2010-01-27 21:06:53 +00:00
2009-12-13 03:18:37 +00:00
2010-03-04 12:18:24 +00:00
2010-02-26 13:48:04 +00:00
2010-01-02 10:09:20 +00:00
2010-02-25 20:24:19 +00:00
2010-01-05 21:09:59 +00:00
2010-02-19 16:54:51 +00:00
2009-12-17 17:03:47 +00:00
2010-02-26 09:41:16 +00:00
2009-12-13 04:14:55 +00:00