diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-14 20:12:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-14 20:12:51 +0100 |
commit | 9c73736da85110ca73d141b5acff6f4989092c07 (patch) | |
tree | 05b4417d3047592b85c2af452236c4093cf9fe9c /src/tmpfiles.c | |
parent | f90cf44c02ac09469279126e2863a1e71358ee11 (diff) |
tmpfiles: ignore files marked with the sticky bit
Diffstat (limited to 'src/tmpfiles.c')
-rw-r--r-- | src/tmpfiles.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) |