diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-08-21 20:05:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-08-21 20:07:46 +0200 |
commit | ad293f5a94d8124ece7d1cb860952a87b1c8d98f (patch) | |
tree | 31abfee26f58e4e73a4d2286127967929371f31c /src/util.h | |
parent | 94959f0fa0c19ae1db0e63d9a5dfc94c660825ba (diff) |
cgroup: honour sticky bit when trimming cgroup trees
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index e23f309d3d..b81edc8b2b 100644 --- a/src/util.h +++ b/src/util.h @@ -362,7 +362,7 @@ int get_ctty(pid_t, dev_t *_devnr, char **r); int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid); -int rm_rf(const char *path, bool only_dirs, bool delete_root); +int rm_rf(const char *path, bool only_dirs, bool delete_root, bool honour_sticky); int pipe_eof(int fd); @@ -467,6 +467,8 @@ bool in_charset(const char *s, const char* charset); int block_get_whole_disk(dev_t d, dev_t *ret); +int file_is_sticky(const char *p); + #define NULSTR_FOREACH(i, l) \ for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1) |