chiark / gitweb /
util: rm_rf() refuse cleaning non-memory file systems, as extra paranoia
[elogind.git] / src / shared / util.h
index 47497b578c36001b5314b6c07d25947a0587b528..89e9a00afcc34b0d3571c3a651a54be10d1b0b6e 100644 (file)
@@ -358,7 +358,9 @@ int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid);
 int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid);
 
 int rm_rf_children(int fd, bool only_dirs, bool honour_sticky, struct stat *root_dev);
+int rm_rf_children_dangerous(int fd, bool only_dirs, bool honour_sticky, struct stat *root_dev);
 int rm_rf(const char *path, bool only_dirs, bool delete_root, bool honour_sticky);
+int rm_rf_dangerous(const char *path, bool only_dirs, bool delete_root, bool honour_sticky);
 
 int pipe_eof(int fd);