[arch-general] pacman/libalpm/libfetch do not honor TMPDIR
ino-news at spotteswoode.dnsalias.org
Thu Nov 24 18:18:43 EST 2011
would it be possible to let pacman, libalpm and libfetch honor the
environment variable TMPDIR?
I mean, this is stupid. Many people keep /tmp in RAM, on a tmpfs, and
make it big enough, but not too big, as it takes away RAM when getting
#define TMP_LOC "TMPDIR"
#include <stdlib.h> /* getenv(3) */
#include <string.h> /* strncat(3) */
td = getenv(TMP_LOC);
/* cleanup for safety: td = cleanup(td); */
tmpdir = strncat(td, "/", 1);
What can be so difficult about this?
I got this pesty "warning: warning given when extracting .INSTALL (Write
failed)" today, and when looking at pacman, libalpm and libfetch with
strings(1), none of them seem to check TMPDIR!
More information about the arch-general