summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-05-16 15:08:27 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-21 18:52:49 +0200
commit597f43c7849dc9fc9aeb806f8d4f9679cabce8e6 (patch)
treecdd42442fcb98de8fca9695813ee2d217f68197d /src/shared/util.h
parentd966a7b3631a54602297ef3bff1dcaf35cbefd12 (diff)
util: rm_rf_children() add root_dev parameter
if root_dev is set, remove subdirectories only, if the device is the same as the root_dev. This prevents to remove files across device boundaries.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 4fccf96a6d..2d890fa6a3 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -349,7 +349,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 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);
+int rm_rf_children(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 pipe_eof(int fd);