From 9c73736da85110ca73d141b5acff6f4989092c07 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 14 Nov 2010 20:12:51 +0100 Subject: tmpfiles: ignore files marked with the sticky bit --- src/tmpfiles.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/tmpfiles.c') diff --git a/src/tmpfiles.c b/src/tmpfiles.c index 1ad5a01eab..120236c5cc 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) -- cgit v1.2.3-54-g00ecf