mktemp

Peter Bonivart bonivart at opencsw.org
Wed Apr 11 15:57:36 IST 2012


On Wed, Apr 11, 2012 at 4:25 PM, Richard Mealing <richard at fastnet.co.uk> wrote:
> usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
>
>        mktemp [-d] [-q] [-u] -t prefix
>
> /usr/local/libexec/MailScanner/bitdefender-wrapper: Cannot create temporary
> file
>
> usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
>
>        mktemp [-d] [-q] [-u] -t prefix
>
> /usr/local/libexec/MailScanner/clamav-wrapper: Cannot make name for
> temporary dir

Seems like on your platform you can't use just mktemp with no args at
all. On Solaris all args are optional:

SYNOPSIS
     mktemp [-dtqu] [-p directory] [template]

Try editing the wrapper files to something like this:

TempDir=$(mktemp -t tmp.XXXXXX) || { echo "$0: Cannot make name for
temporary dir" >&2; exit 1; }

/peter


More information about the MailScanner mailing list