summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-08-21 21:00:41 +0200
committerLennart Poettering <lennart@poettering.net>2011-08-21 21:00:41 +0200
commite27796a03065fac50fad07d5b42682ecb1e17d46 (patch)
treec7ad138e0598486ace8313341998786c59c5705f /src/util.c
parentb4454c5edfab70fd1c6a0ea6836a0c2ddb61ef25 (diff)
cgroup: when trimming cgroup trees, honour sticky bit of tasks file
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index ecfe450dca..e31e0f575a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -3475,7 +3475,7 @@ int rm_rf(const char *path, bool only_dirs, bool delete_root, bool honour_sticky
if (honour_sticky && file_is_sticky(path) > 0)
return r;
- if (rmdir(path) < 0) {
+ if (rmdir(path) < 0 && errno != ENOENT) {
if (r == 0)
r = -errno;
}