"Cannot create temporary command file" error
Jindrich Makovicka
makovick at kmlinux.fjfi.cvut.cz
Mon May 19 09:59:53 UTC 2003
Ali Akcaagac wrote:
> On Mon, 2003-05-19 at 09:40, Dmitry Semyonov wrote:
>
>>>Maybe you gonna fix your tmp dir first and chmod it correctly. It has to
>>>be 1777 if the user isn't able to create some temporary stuff in that
>>>dir then something is seriously wrong.
>>
>>Don't pay too much attention to confusing error message ;)
>>Users are able to create files under /tmp.
>>The problem arises after /tmp/mc-$USER is deleted during active mc
>>session.
>
> Ahh! .... Yes this situation, yeah I find this quite annoying myself
> from time to time when deleting that mc-* dir by mistake within a mc
> session. I was wrong by assuming that this was a general tmp dir issue
> with general creating of that dir.
The attached patch hopefully fixes it.
> I think that this stuff should be handled not in the tmp dir rather than
> the user dir itself e.g.
>
> .mc/
> .mc/tmp/ <--- here
> .mc/history
> .mc/ini
>
> Would make more sense. But I think that MC itself use the tmpdir
> functioncalls to deal with that stuff.
It doesn't seem to, it just uses getenv('TMPDIR') so it's matter of
changing one line of code. But I think an advantage of using /tmp is
that /tmp can be cleaned much easier. When using .mc/tmp/mc-XXXX, these
directories will pile up, as with current mc, there are lots of
situations when the user has to kill -9 mc because it froze.
Regards,
--
Jindrich Makovicka
More information about the mc-devel
mailing list