#2460 Issue closed: Don't use hardcoded /tmp but $TMP_DIR

Labels: cleanup, fixed / solved / done

jsmeix opened issue at 2020-07-21 12:10:

Cf. https://github.com/rear/rear/pull/2445/files#r448155637

We have several places in the code where hardcoded /tmp is used.
Normally $TMP_DIR should be used instead.

jsmeix commented at 2020-07-29 10:48:

With https://github.com/rear/rear/pull/2462 merged
this issue should be fixed
as far as I found possible places in the code with

# find usr/sbin/rear usr/share/rear/ -type f | xargs grep '/tmp' | grep -v ': *#'

and

# find usr/sbin/rear usr/share/rear/ -type f | xargs grep 'TMPDIR'

[Export of Github issue for rear/rear.]