Files
systemd/src/basic
Lennart Poettering 992e8f224b util-lib: rework /tmp and /var/tmp handling code
Beef up the existing var_tmp() call, rename it to var_tmp_dir() and add a
matching tmp_dir() call (the former looks for the place for /var/tmp, the
latter for /tmp).

Both calls check $TMPDIR, $TEMP, $TMP, following the algorithm Python3 uses.
All dirs are validated before use. secure_getenv() is used in order to limite
exposure in suid binaries.

This also ports a couple of users over to these new APIs.

The var_tmp() return parameter is changed from an allocated buffer the caller
will own to a const string either pointing into environ[], or into a static
const buffer. Given that environ[] is mostly considered constant (and this is
exposed in the very well-known getenv() call), this should be OK behaviour and
allows us to avoid memory allocations in most cases.

Note that $TMPDIR and friends override both /var/tmp and /tmp usage if set.
2016-08-04 16:27:07 +02:00
..
2016-02-19 01:36:46 +06:00
2015-11-30 21:51:03 +01:00
2016-06-21 13:20:48 +02:00
2015-11-18 23:09:02 +01:00
2016-03-15 19:40:33 -04:00
…
2016-07-09 05:49:04 +02:00
2015-11-30 21:51:03 +01:00
2016-06-21 13:20:48 +02:00
2016-06-13 18:47:42 +02:00
2016-03-22 18:51:59 -04:00
2016-07-31 22:48:22 -04:00