From 89358f24cfb8d9bb501f60ce9f49b5ec1b2a02c1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 2 May 2024 00:52:26 +0200 Subject: [PATCH] readutmp, boot-time: Improve for some Cygwin installations. Reported by Ken Brown in . * lib/boot-time-aux.h (get_windows_boot_time): Use /proc/cygdrive/ instead of /cygdrive/. --- ChangeLog | 8 ++++++++ lib/boot-time-aux.h | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 54239ffcc3..0e50c36566 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-05-01 Bruno Haible + + readutmp, boot-time: Improve for some Cygwin installations. + Reported by Ken Brown in + . + * lib/boot-time-aux.h (get_windows_boot_time): Use /proc/cygdrive/ + instead of /cygdrive/. + 2024-05-01 Bruno Haible stddef: A better workaround against GCC bug 114870. diff --git a/lib/boot-time-aux.h b/lib/boot-time-aux.h index 8b966fe691..a94cdb3f30 100644 --- a/lib/boot-time-aux.h +++ b/lib/boot-time-aux.h @@ -306,7 +306,8 @@ get_windows_boot_time (struct timespec *p_boot_time) process, namely C:\pagefile.sys. */ const char * const boot_touched_file = #if defined __CYGWIN__ && !defined _WIN32 - "/cygdrive/c/pagefile.sys" + /* It is more portable to use /proc/cygdrive/c than /cygdrive/c. */ + "/proc/cygdrive/c/pagefile.sys" #else "C:\\pagefile.sys" #endif -- 2.39.5