pan-users
[Top][All Lists]
Advanced

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

[Pan-users] Re: Connections [Is it hiding a security hole?]


From: Duncan
Subject: [Pan-users] Re: Connections [Is it hiding a security hole?]
Date: Sun, 17 Aug 2008 02:23:28 +0000 (UTC)
User-agent: Pan/0.133 (House of Butterflies)

Per Hedeland <address@hidden> posted
address@hidden, excerpted below, on  Sun,
17 Aug 2008 01:53:55 +0200:

> And of course Pan doesn't delete (and re-create) the file out of an evil
> desire to circumvent the lack of write permissions on the file, it's
> pretty much standard procedure when you update config files and the like
> programatically. I.e. you create a *new* file (say servers.xml.tmp),
> write the data to that, and then 'mv' (or rather rename()) it over the
> old one. This has several advantages, notably that you don't end up with
> a mess if the writing fails for some reason, and that the change is
> atomic, i.e. there is never a file which is half-old and half-new.

Well stated. =8^)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]