Re: [systemd-devel] [PATCH 1/2] timedatectl: check for getenv("TZDIR")

2015-03-24 Thread Kay Sievers
On Tue, Mar 24, 2015 at 7:39 PM, Shawn Landden wrote: > On Tue, Mar 24, 2015 at 11:32 AM, Kay Sievers wrote: >> On Tue, Mar 24, 2015 at 7:11 PM, Shawn Landden wrote: >> >>> /* Enforce the values of /etc/localtime */ >>> if (getenv("TZ")) { >>> -fprintf(stderr, "

Re: [systemd-devel] [PATCH 1/2] timedatectl: check for getenv("TZDIR")

2015-03-24 Thread Shawn Landden
On Tue, Mar 24, 2015 at 11:32 AM, Kay Sievers wrote: > On Tue, Mar 24, 2015 at 7:11 PM, Shawn Landden wrote: > >> /* Enforce the values of /etc/localtime */ >> if (getenv("TZ")) { >> -fprintf(stderr, "Warning: Ignoring the TZ variable.\n\n"); >> +

Re: [systemd-devel] [PATCH 1/2] timedatectl: check for getenv("TZDIR")

2015-03-24 Thread Kay Sievers
On Tue, Mar 24, 2015 at 7:11 PM, Shawn Landden wrote: > /* Enforce the values of /etc/localtime */ > if (getenv("TZ")) { > -fprintf(stderr, "Warning: Ignoring the TZ variable.\n\n"); > +fprintf(stderr, "Warning: Ignoring the %s variable.\n\n", >

Re: [systemd-devel] [PATCH 1/2] timedatectl: check for getenv("TZDIR")

2015-03-24 Thread Kay Sievers
On Tue, Mar 24, 2015 at 7:11 PM, Shawn Landden wrote: > I liked having the DST information. It is a pity glibc doesn't export > this information. Yeah, date(1) could use and show that information too, I think. Adding custom parsers to work-around glibc's development style was needed in the past,

[systemd-devel] [PATCH 1/2] timedatectl: check for getenv("TZDIR")

2015-03-24 Thread Shawn Landden
I liked having the DST information. It is a pity glibc doesn't export this information. --- src/timedate/timedatectl.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index ab5c8a1..8daae54