X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftmpfiles.c;h=120236c5cc07490f03724b694e77e831f9987f92;hb=92ab323c824300683efb11fd43c9d834cea9b9e6;hp=1ad5a01eab9eaf3abd32c8fa4d7340287c34498b;hpb=abe35cc2b7921891cc56cd8d402e8f7d1ef48d39;p=elogind.git diff --git a/src/tmpfiles.c b/src/tmpfiles.c index 1ad5a01ea..120236c5c 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -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)