From 08e03c867950bb514bac8b48cb92a19593e550ff Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 6 May 2001 03:03:45 +0000 Subject: * fix ctm(8) to use mkstemp() instead of tempnam() for tempfile creation. * Tag the internal err() function with __printflike to allow checking for non-constant format string arguments (none exist) * Use fmtcheck() to sanitize the tar command obtained via -t to make sure it doesn't contain extraneous format operators. Reviewed by: mikeh MFC after: 1 week --- usr.sbin/ctm/ctm_rmail/ctm_rmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/ctm/ctm_rmail/ctm_rmail.c') diff --git a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c index 194394d..464f733 100644 --- a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c +++ b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c @@ -509,7 +509,7 @@ combine(char *delta, int npieces, char *dname, char *pname, char *tname) err("cannot open '%s' for writing", tname); } else - err("*mktemp: '%s'", tname); + err("*mkstemp: '%s'", tname); return 0; } -- cgit v1.1