[systemd-devel] [PATCH 2/3] timedated: gather timezone from /etc/localtime sym target

2012-08-11 Thread Shawn Landden
From: Shawn Landen /etc/localtime -> /usr/share/zoneinfo/... or /etc/localtime -> ../usr/share/zoneinfo/... (note, ../usr is not the same if /etc is a symlink, as this isn't using canonicalize_file_name()) keep other method for now, consider dropping later. Supporting relative links here are

[systemd-devel] whoops, handle readlink_malloc returning -ENOMEM properly

2012-08-11 Thread Shawn Landden
only syscalls set errno ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH 3/3] man: remove timezone(5) and add localtime(5)

2012-08-11 Thread Shawn Landden
--- Makefile.am |2 +- man/{timezone.xml => localtime.xml} | 49 +++ units/systemd-timedated.service.in |2 +- 3 files changed, 28 insertions(+), 25 deletions(-) rename man/{timezone.xml => localtime.xml} (59%) diff --git a/Makef

[systemd-devel] [PATCH 2/3] timedated: gather timezone from /etc/localtime sym target

2012-08-11 Thread Shawn Landden
From: Shawn Landen /etc/localtime -> /usr/share/zoneinfo/... or /etc/localtime -> ../usr/share/zoneinfo/... (note, ../usr is not the same if /etc is a symlink, as this isn't using canonicalize_file_name()) keep other method for now, consider dropping later. Supporting relative links here are

[systemd-devel] [PATCH 1/3] util: add symlink_atomic()

2012-08-11 Thread Shawn Landden
From: Shawn Landen unlike symlink_or_copy_atomic(), this function creates a symlink even if the oldname and newname (from and to) are on differn't devices. (stat.st_dev) --- src/shared/util.c | 19 +-- src/shared/util.h |1 + 2 files changed, 18 insertions(+), 2 deletions(-

[systemd-devel] [PATCH 2/2] shared/util: add fstab support for partuuid/partlabel

2012-08-11 Thread Dave Reisner
udev has supported this since 172, so it should be a safe (and welcome) addition for users of GPT partitioned disks. --- and fwiw, util-linux will support reading these as of 2.22 as well. src/shared/util.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/shared/util.c b/src/shared/u

[systemd-devel] [PATCH 1/2] shared/util: refactor fstab_node_to_udev_node

2012-08-11 Thread Dave Reisner
Since this is purely duplicated logic, separate it out into a small static function. --- ugly patch. thanks git. src/shared/util.c | 53 - 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/src/shared/util.c b/src/shared/util.c inde

Re: [systemd-devel] [ANNOUNCE] systemd 188

2012-08-11 Thread Colin Guthrie
'Twas brillig, and Lennart Poettering at 10/08/12 13:44 did gyre and gimble: > On Thu, 09.08.12 21:59, Colin Guthrie (gm...@colin.guthr.ie) wrote: > >> >> Hi, >> >> 'Twas brillig, and Lennart Poettering at 09/08/12 11:32 did gyre and gimble: >>> http://www.freedesktop.org/software/systemd/systemd-

Re: [systemd-devel] [ANNOUNCE] systemd 188

2012-08-11 Thread Colin Guthrie
'Twas brillig, and Lennart Poettering at 10/08/12 13:44 did gyre and gimble: > On Thu, 09.08.12 21:59, Colin Guthrie (gm...@colin.guthr.ie) wrote: > >> >> Hi, >> >> 'Twas brillig, and Lennart Poettering at 09/08/12 11:32 did gyre and gimble: >>> http://www.freedesktop.org/software/systemd/systemd-