Re: pacman/libalpm/libfetch do not honor TMPDIR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



[2011-11-25 00:18:43 +0100] clemens fischer:
> 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
> loaded.
> 
>   #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?

If that's easy then it shouldn't be too hard for you to open a bug
report on the tracker and submit a patch.

-- 
Gaetan


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux