Gentoo Archives: gentoo-user

From: Philip Webb <purslow@×××××××××.ca>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] stuff accumulating in /tmp
Date: Mon, 21 Jan 2008 02:23:53
Message-Id: 20080121022350.GA13226@sympatico.ca
In Reply to: Re: [gentoo-user] stuff accumulating in /tmp by Alan McKinnon
1 080120 Alan McKinnon wrote:
2 > On Sunday 20 January 2008, Philip Webb wrote:
3 >> 080119 Kevin wrote:
4 >>> To automatically wipe /tmp upon reboot,
5 >>> change WIPE_TMP to "yes" in /etc/conf.d/bootmisc
6 >> Thanks: I will consider the implications.
7 > There aren't any implications.
8 > By *definition*, the contents of /tmp should not be relied on
9 > to survive a reboot or even subsequent invocations of the same program.
10 > Any app that does rely on the contents of /tmp still being there is thus
11 > fundamentally broken in it's behaviour and should be avoided or fixed.
12
13 Strictly, you are correct -- that's the POSIX rule, which I know about -- ,
14 but there is a problem when using Mutt (another user mentioned this).
15 By default, Mutt creates its temporary files in /tmp ,
16 which applies to the working file for new msgs even when editing with Vim
17 (which defaults to keeping its .swp running-back-up files in '.').
18 Leaving the defaults in place, if power fails while composing a msg,
19 the surviving .swp files wb preserved in /tmp ,
20 but only if you don't set WIPE_TMP="yes" . If you set that to "yes",
21 when you reboot after the power failure, the .swp back-up wb lost.
22 You need to change .muttrc to include 'set tmpdir="/var/tmp"',
23 which should always survive a reboot (acc to POSIX).
24
25 --
26 ========================,,============================================
27 SUPPORT ___________//___, Philip Webb : purslow@××××××××××××××.ca
28 ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
29 TRANSIT `-O----------O---' University of Toronto
30 --
31 gentoo-user@l.g.o mailing list