chiark / gitweb /
tmpfiles: also look in /lib/tmpfiles.d on split /usr systems
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Jul 2012 14:24:55 +0000 (16:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jul 2012 14:57:13 +0000 (16:57 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=38686

I don't think the usecase case in that bug makes much sense, but all the
other tools do honour /lib in the search path so we probably should do
that here, too.

src/tmpfiles/tmpfiles.c

index 7a453dcc2aeddef8bfb9564801f0589c6705dd36..45125b7b946ee7a2bf59d1b11d52739506bce35b 100644 (file)
@@ -107,6 +107,9 @@ static const char * const conf_file_dirs[] = {
         "/run/tmpfiles.d",
         "/usr/local/lib/tmpfiles.d",
         "/usr/lib/tmpfiles.d",
+#ifdef HAVE_SPLIT_USR
+        "/lib/tmpfiles.d",
+#endif
         NULL
 };