Re: Config file handling

2003-03-21 Thread Adam Byrtek / alpha
On Fri, Mar 21, 2003 at 02:15:52AM -0500, Pavel Roskin wrote: > Not sure if it's the right fix. Sometimes there is more that one way to > write home directory. For example. /home is a link to /usr/home by > default on some versions of FreeBSD. I don't see the problem. There are only 2 possibilit

Re: Config file handling

2003-03-20 Thread Pavel Roskin
Hello! > Patch to write config to temporary file and then 'atomically' move it > to proper place. Thank you! > Moreover it is a fix for following nasty bug which happens when no > ~/.mc/ini is found: > > open("/usr/local/share/mc/mc.ini", > O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES

Config file handling

2003-03-20 Thread Adam Byrtek / alpha
Patch to write config to temporary file and then 'atomicaly' move it to proper place. Moreover it is a fix for following nasty bug which happend when no ~/.mc/ini is found: open("/usr/local/share/mc/mc.ini", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES (Permission denied) We should n