projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8e2400
)
tmpfiles: age root-owned read-only files, by default (#7917)
author
itsbill
<itsbill@users.noreply.github.com>
Mon, 12 Feb 2018 14:47:08 +0000
(09:47 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 12 Feb 2018 14:47:08 +0000
(15:47 +0100)
[zj: The note in NEWS was added in
82c8e3e6503a40684cf265842bb1c26a8f7681b5
and released as part of systemd-237.]
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index
29e66b0
..
4b35746
100644
(file)
--- a/
src/tmpfiles/tmpfiles.c
+++ b/
src/tmpfiles/tmpfiles.c
@@
-568,12
+568,6
@@
static int dir_cleanup(
continue;
}
- /* Do not delete read-only files owned by root */
- if (s.st_uid == 0 && !(s.st_mode & S_IWUSR)) {
- log_debug("Ignoring \"%s/%s\": read-only and owner by root.", p, dent->d_name);
- continue;
- }
-
sub_path = strjoin(p, "/", dent->d_name);
if (!sub_path) {
r = log_oom();