[PATCH] V2 mktemp: fix -u option if TMPDIR is set

Ron Yorston rmy at tigress.co.uk
Thu Sep 20 13:58:07 UTC 2012


Tito <farmatito at tiscali.it> wrote:
>This seems to work for me as expected eventually needs more testing.

It doesn't work correctly in this case:

   $ mktemp -t -p /var/tmp -u temp.XXXXXX
   /var/tmp/temp.Jj1aWI
   $ export TMPDIR=/tmp
   $ mktemp -t -p /var/tmp -u temp.XXXXXX
   /tmp/temp.h8I9ly

Ron


More information about the busybox mailing list