chiark / gitweb /
pam: rename master user cgroup to 'master'
[elogind.git] / src / tmpfiles.c
index 1ad5a01eab9eaf3abd32c8fa4d7340287c34498b..120236c5cc07490f03724b694e77e831f9987f92 100644 (file)
@@ -182,6 +182,13 @@ static int dir_cleanup(
                         }
 
                 } else {
+                        /* Skip files for which the sticky bit is
+                         * set. These are semantics we define, and are
+                         * unknown elsewhere. See XDG_RUNTIME_DIR
+                         * specification for details. */
+                        if (s.st_mode & S_ISVTX)
+                                continue;
+
                         if (mountpoint) {
                                 if (streq(dent->d_name, ".journal") &&
                                     s.st_uid == 0)