On Sun, 09 Feb 2020 00:33:42 +0100, Joerg Jung wrote: > I have a machine with a large data storage attached, but it has only 2GB > of /tmp (which I consider enough usually). On this machine weekly > locate.updatedb fails, due to /tmp being full. To fix this I would like > to point locate to a different TMPDIR. > > But it seems one can not just set TMPDIR from /etc/locate.rc to point > elsewhere, since command line args in /etc/weekly override > /etc/locate.rc settings. > > While it's possible to add a weekly.local to set TMPDIR I believe it > should be better set in the actual configuration file instead of > ignoring locate.rc. > > Thus the diff below proposes to remove command line argument to be able > to use /etc/locate.rc instead.
I think this is fine. The existing situation where /etc/weekly overrides /etc/locate.rc violates the principle of least surprise. - todd
