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



Hi mc-devel,

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.
--
vda

Attachment: mc_recreate_tempdir.diff
Description: Binary data



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