Updated sssd-debel

This commit is contained in:
2024-01-26 15:06:09 +01:00
parent d93314aae9
commit 00ef086c8f
75 changed files with 2919 additions and 4 deletions

View File

@ -0,0 +1,19 @@
--- src/util/util.c.orig 2023-05-05 08:11:07 UTC
+++ src/util/util.c
@@ -763,6 +763,16 @@ errno_t sss_fd_nonblocking(int fd)
return EOK;
}
+int flb_timezone(void)
+{
+ struct tm tm;
+ time_t t = 0;
+ tzset();
+ localtime_r(&t, &tm);
+ return -(tm.tm_gmtoff);
+}
+#define timezone (flb_timezone())
+
/* Convert GeneralizedTime (http://en.wikipedia.org/wiki/GeneralizedTime)
* to unix time (seconds since epoch). Use UTC time zone.
*/