summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-07-08 23:03:38 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-04 08:08:26 -0400
commit3ce554e18cc071a8a69142507cae979b99037513 (patch)
tree0560fd764e22e305763e5b515a2ced1b68f69975 /src
parent9c9cd37320c43d50632bcb9452aee71b18a7a910 (diff)
downloadlighttpd-git-3ce554e18cc071a8a69142507cae979b99037513.tar.gz
[core] report Y2038 support in lighttpd -V
(report unsafe 32-bit signed time_t) 64-bit time_t (default with 64-bit builds) is safe beyond Y2038
Diffstat (limited to 'src')
-rw-r--r--src/server.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index 7cfd1a3b..f77186d3 100644
--- a/src/server.c
+++ b/src/server.c
@@ -703,7 +703,13 @@ static void show_features (void) {
#endif
;
show_version();
- printf("%s%s%s\n", fdevent_show_event_handlers(), network_write_show_handlers(), features);
+ printf("%s%s%s%s\n",
+ fdevent_show_event_handlers(),
+ network_write_show_handlers(),
+ features,
+ sizeof(time_t) > 4 || (sizeof(time_t) == 4 && (time_t)-1 > (time_t)1)
+ ? "\t+ Y2038 support\n"
+ : "\t- Y2038 support (unsafe 32-bit signed time_t)\n");
}
__attribute_cold__