From 7b9dcb70c4d2cefd15038fef066552c7d1fab07e Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 2 Dec 2022 21:45:44 +0000 Subject: [PATCH] gunixmounts: Include configured localstatedir+runstatedir in system FS list In case they differ from the defaults, we probably want to ignore them when listing filesystems which are interesting to the user. Signed-off-by: Philip Withnall --- gio/gunixmounts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 962b964b9..9a02de3b5 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -266,10 +266,12 @@ g_unix_is_mount_path_system_internal (const char *mount_path) "/var", "/var/crash", "/var/local", + GLIB_LOCALSTATEDIR, "/var/log", "/var/log/audit", /* https://bugzilla.redhat.com/show_bug.cgi?id=333041 */ "/var/mail", "/var/run", + GLIB_RUNSTATEDIR, "/var/tmp", /* https://bugzilla.redhat.com/show_bug.cgi?id=335241 */ "/proc", "/sbin",