summaryrefslogtreecommitdiffstats
path: root/src/basic/rm-rf.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-06-17 18:37:16 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-06-17 18:37:16 +0200
commite3f791a2b35b98cddf1f140ee5c80e5403d89afd (patch)
tree2f745f336c355e6d09a39252c680cf87b37d19f9 /src/basic/rm-rf.c
parentudev-builtin-blkid: Use _cleanup_blkid_free_probe_ to free probe (#6108) (diff)
downloadsystemd-e3f791a2b35b98cddf1f140ee5c80e5403d89afd.tar.xz
systemd-e3f791a2b35b98cddf1f140ee5c80e5403d89afd.zip
basic/path-util: allow flags for path_equal_or_files_same
No functional change, just a new parameters and the tests that AT_SYMLINK_NOFOLLOW works as expected.
Diffstat (limited to 'src/basic/rm-rf.c')
-rw-r--r--src/basic/rm-rf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/rm-rf.c b/src/basic/rm-rf.c
index ff040e7a55..421289e11b 100644
--- a/src/basic/rm-rf.c
+++ b/src/basic/rm-rf.c
@@ -182,7 +182,7 @@ int rm_rf(const char *path, RemoveFlags flags) {
/* We refuse to clean the root file system with this
* call. This is extra paranoia to never cause a really
* seriously broken system. */
- if (path_equal_or_files_same(path, "/")) {
+ if (path_equal_or_files_same(path, "/", 0)) {
log_error("Attempted to remove entire root file system, and we can't allow that.");
return -EPERM;
}