X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futil.h;h=b81edc8b2b18ca14049d50cacad7079515c7b16f;hp=e23f309d3d499e51bc2a9c1e40f605e2fd70f990;hb=ad293f5a94d8124ece7d1cb860952a87b1c8d98f;hpb=94959f0fa0c19ae1db0e63d9a5dfc94c660825ba;ds=sidebyside diff --git a/src/util.h b/src/util.h index e23f309d3..b81edc8b2 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)