Re: [SSSD] [PATCH] sudo: set tm_isdst when converting time attributes

2014-01-29 Thread Jakub Hrozek
On Wed, Jan 29, 2014 at 02:57:09PM +0100, Jakub Hrozek wrote: > On Wed, Jan 29, 2014 at 02:45:49PM +0100, Pavel Březina wrote: > > On 01/29/2014 01:29 PM, Jakub Hrozek wrote: > > >On Wed, Jan 29, 2014 at 12:58:24PM +0100, Pavel Březina wrote: > > >>https://fedorahosted.org/sssd/ticket/2213 > > > >

Re: [SSSD] [PATCH] sudo: set tm_isdst when converting time attributes

2014-01-29 Thread Jakub Hrozek
On Wed, Jan 29, 2014 at 02:45:49PM +0100, Pavel Březina wrote: > On 01/29/2014 01:29 PM, Jakub Hrozek wrote: > >On Wed, Jan 29, 2014 at 12:58:24PM +0100, Pavel Březina wrote: > >>https://fedorahosted.org/sssd/ticket/2213 > > > >> for (format = formats; *format != NULL; format++) { > >>

Re: [SSSD] [PATCH] sudo: set tm_isdst when converting time attributes

2014-01-29 Thread Pavel Březina
On 01/29/2014 01:29 PM, Jakub Hrozek wrote: On Wed, Jan 29, 2014 at 12:58:24PM +0100, Pavel Březina wrote: https://fedorahosted.org/sssd/ticket/2213 for (format = formats; *format != NULL; format++) { tret = strptime(str, *format, &tm); if (tret != NULL && *tret == '

Re: [SSSD] [PATCH] sudo: set tm_isdst when converting time attributes

2014-01-29 Thread Jakub Hrozek
On Wed, Jan 29, 2014 at 12:58:24PM +0100, Pavel Březina wrote: > https://fedorahosted.org/sssd/ticket/2213 > for (format = formats; *format != NULL; format++) { > tret = strptime(str, *format, &tm); > if (tret != NULL && *tret == '\0') { > +/* strptime() leaves i

[SSSD] [PATCH] sudo: set tm_isdst when converting time attributes

2014-01-29 Thread Pavel Březina
https://fedorahosted.org/sssd/ticket/2213 From 53c98c297a28cdf9f9dc16db8b8914049a4b28a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Wed, 29 Jan 2014 12:56:08 +0100 Subject: [PATCH] sudo: set tm_isdst when converting time attributes strptime() which is used to parse LDAP