[PATCH] V2 mktemp: fix -u option if TMPDIR is set
Ron Yorston
rmy at tigress.co.uk
Thu Sep 20 14:46:23 UTC 2012
Tito <farmatito at tiscali.it> wrote:
>Seems to work like debian's mktemp with my patch applied,
>maybe needs more testing......
>
>debian:~$ cd Desktop/busybox
>debian:~/Desktop/busybox$ mktemp -t -p /var/tmp -u temp.XXXXXX
>/var/tmp/temp.D0pKak
>debian:~/Desktop/busybox$ export TMPDIR=/tmp
>debian:~/Desktop/busybox$ mktemp -t -p /var/tmp -u temp.XXXXXX
>/tmp/temp.irsv2d
>debian:~/Desktop/busybox$
Indeed, I'd just worked that out. And that is the documented behaviour
of coreutils mktemp.
That being the case Tito's patch is correct.
Ron
More information about the busybox
mailing list