From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JGmKH-0000GU-JF for garchives@archives.gentoo.org; Mon, 21 Jan 2008 02:23:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DB3BE054B; Mon, 21 Jan 2008 02:23:51 +0000 (UTC) Received: from tomts16-srv.bellnexxia.net (tomts16-srv.bellnexxia.net [209.226.175.4]) by pigeon.gentoo.org (Postfix) with ESMTP id 2A0CCE054B for ; Mon, 21 Jan 2008 02:23:51 +0000 (UTC) Received: from toip6.srvr.bell.ca ([209.226.175.125]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20080121022350.RGGL574.tomts16-srv.bellnexxia.net@toip6.srvr.bell.ca> for ; Sun, 20 Jan 2008 21:23:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAJ2Qk0dGMZyi/2dsb2JhbACBV6h9 Received: from bas1-toronto01-1177656482.dsl.bell.ca (HELO sympatico.ca) ([70.49.156.162]) by toip6.srvr.bell.ca with SMTP; 20 Jan 2008 21:21:16 -0500 Received: by sympatico.ca (sSMTP sendmail emulation); Sun, 20 Jan 2008 21:23:50 -0500 Date: Sun, 20 Jan 2008 21:23:50 -0500 From: Philip Webb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] stuff accumulating in /tmp Message-ID: <20080121022350.GA13226@sympatico.ca> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20080120013901.GB5048@sympatico.ca> <4792C782.1070806@gmail.com> <20080120045549.GD5048@sympatico.ca> <200801201052.13182.alan.mckinnon@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801201052.13182.alan.mckinnon@gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: fc3b8106-6b7a-4d34-9218-ab474d53c309 X-Archives-Hash: 5d326a54ffb6fbae5dce7f98ffd67b20 080120 Alan McKinnon wrote: > On Sunday 20 January 2008, Philip Webb wrote: >> 080119 Kevin wrote: >>> To automatically wipe /tmp upon reboot, >>> change WIPE_TMP to "yes" in /etc/conf.d/bootmisc >> Thanks: I will consider the implications. > There aren't any implications. > By *definition*, the contents of /tmp should not be relied on > to survive a reboot or even subsequent invocations of the same program. > Any app that does rely on the contents of /tmp still being there is thus > fundamentally broken in it's behaviour and should be avoided or fixed. Strictly, you are correct -- that's the POSIX rule, which I know about -- , but there is a problem when using Mutt (another user mentioned this). By default, Mutt creates its temporary files in /tmp , which applies to the working file for new msgs even when editing with Vim (which defaults to keeping its .swp running-back-up files in '.'). Leaving the defaults in place, if power fails while composing a msg, the surviving .swp files wb preserved in /tmp , but only if you don't set WIPE_TMP="yes" . If you set that to "yes", when you reboot after the power failure, the .swp back-up wb lost. You need to change .muttrc to include 'set tmpdir="/var/tmp"', which should always survive a reboot (acc to POSIX). -- ========================,,============================================ SUPPORT ___________//___, Philip Webb : purslow@chass.utoronto.ca ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies TRANSIT `-O----------O---' University of Toronto -- gentoo-user@lists.gentoo.org mailing list