Store userinfo in network byte order for easy portability. (Old files will be automatically converted.)

master
Joey Hess 2008-03-19 22:46:51 -04:00
parent 127d97066b
commit c92e9b34ec
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@ sub userinfo_store ($) { #{{{
my $newfile="$config{wikistatedir}/userdb.new"; my $newfile="$config{wikistatedir}/userdb.new";
my $oldmask=umask(077); my $oldmask=umask(077);
my $ret=Storable::lock_store($userinfo, $newfile); my $ret=Storable::lock_nstore($userinfo, $newfile);
umask($oldmask); umask($oldmask);
if (defined $ret && $ret) { if (defined $ret && $ret) {
if (! rename($newfile, "$config{wikistatedir}/userdb")) { if (! rename($newfile, "$config{wikistatedir}/userdb")) {

2
debian/changelog vendored
View File

@ -52,6 +52,8 @@ ikiwiki (2.41) UNRELEASED; urgency=low
Fixes previewing of tables when creating a new page. Fixes previewing of tables when creating a new page.
* German translation update. Closes: #471540 * German translation update. Closes: #471540
* Time::Duration is no longer used, remove from docs and recommends. * Time::Duration is no longer used, remove from docs and recommends.
* Store userinfo in network byte order for easy portability.
(Old files will be automatically converted.)
-- martin f. krafft <madduck@debian.org> Sun, 02 Mar 2008 17:46:38 +0100 -- martin f. krafft <madduck@debian.org> Sun, 02 Mar 2008 17:46:38 +0100