diff options
author | kris <kris@FreeBSD.org> | 2001-05-06 03:03:45 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-05-06 03:03:45 +0000 |
commit | 08e03c867950bb514bac8b48cb92a19593e550ff (patch) | |
tree | ba16ae783c752f27ff9b16bc5793f1bedac840f1 /usr.sbin/ctm/ctm_rmail/ctm_rmail.c | |
parent | 43e5432dcb7ba27d1fd948003fd0048bca8ff12d (diff) | |
download | FreeBSD-src-08e03c867950bb514bac8b48cb92a19593e550ff.zip FreeBSD-src-08e03c867950bb514bac8b48cb92a19593e550ff.tar.gz |
* 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
Diffstat (limited to 'usr.sbin/ctm/ctm_rmail/ctm_rmail.c')
-rw-r--r-- | usr.sbin/ctm/ctm_rmail/ctm_rmail.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |