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

Pavel Tsekov ptsekov at gmx.net
Sun May 20 17:16:19 UTC 2007


On Sun, 20 May 2007, Denis Vlasenko wrote:

> On Saturday 19 May 2007 15:52, Pavel Tsekov 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.
>
> Good.
>
> If I understand it correctly, 4.6.1 os approx. two years old.
> Are there plans to do another point release anytime soon?

I am not in position to answer that question.



More information about the mc-devel mailing list