Per Hedeland <[EMAIL PROTECTED]> posted
[EMAIL PROTECTED], 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



_______________________________________________
Pan-users mailing list
Pan-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/pan-users

Reply via email to