Re: [PATCH] recreate /tmp/mc-$USER if it is deleted.



On Fri, 18 May 2007, Denis Vlasenko wrote:

I am running a script which deletes ordinary files and directories in
/tmp if they are older than $THRESHOLD seconds. mc falls victim to it:
if I have mc running for days, /tmp/mc-$USER gets deleted and mc
complains that it cannot create temporary files when I, for example,
try to enter a .tar.gz.

The fix is very non-intrusive and cheap (just an extra lstat). See
attached patch. Run tested.

A similiar patch has already been applied to CVS unfortunately it
didn't get into the 4.6.1 release:

http://cvs.sv.gnu.org/viewvc/mc/mc/src/utilunix.c?r1=1.87&r2=1.88&diff_format=u

You might want to check the CVS version of MC - it contains many
bugfixes and other changes.



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