2015-02-10 11:34:33 +01:00
|
|
|
Index: glibc-2.20.90/nscd/nscd_stat.c
|
2013-08-06 16:52:55 +02:00
|
|
|
===================================================================
|
2015-02-10 11:34:33 +01:00
|
|
|
--- glibc-2.20.90.orig/nscd/nscd_stat.c
|
|
|
|
+++ glibc-2.20.90/nscd/nscd_stat.c
|
2012-08-28 14:25:24 +02:00
|
|
|
@@ -36,8 +36,13 @@
|
2012-04-19 10:18:58 +02:00
|
|
|
#endif /* HAVE_SELINUX */
|
|
|
|
|
|
|
|
|
|
|
|
-/* We use this to make sure the receiver is the same. */
|
|
|
|
+/* We use this to make sure the receiver is the same. Capture mtime
|
|
|
|
+ of this file if possible. */
|
2015-02-10 11:34:33 +01:00
|
|
|
+#ifdef __TIMESTAMP__
|
|
|
|
+static const char compilation[21];
|
2012-04-19 10:18:58 +02:00
|
|
|
+#else
|
|
|
|
static const char compilation[21] = __DATE__ " " __TIME__;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Statistic data for one database. */
|
|
|
|
struct dbstat
|
2015-02-10 11:34:33 +01:00
|
|
|
@@ -96,7 +101,12 @@ send_stats (int fd, struct database_dyn
|
|
|
|
|
|
|
|
memset (&data, 0, sizeof (data));
|
|
|
|
|
|
|
|
+#ifdef __TIMESTAMP__
|
|
|
|
+ /* Skip day of the week. */
|
|
|
|
+ memcpy (data.version, __TIMESTAMP__ + 4, sizeof (compilation));
|
|
|
|
+#else
|
|
|
|
memcpy (data.version, compilation, sizeof (compilation));
|
|
|
|
+#endif
|
|
|
|
data.debug_level = debug_level;
|
|
|
|
data.runtime = time (NULL) - start_time;
|
|
|
|
data.client_queued = client_queued;
|