projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1dd679
)
util: make sure rm_rf() can be called on symlinks (with the effect of deleting it)
author
Lennart Poettering
<lennart@poettering.net>
Fri, 19 Dec 2014 00:47:19 +0000
(
01:47
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 19 Dec 2014 01:07:42 +0000
(
02:07
+0100)
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index
91cf670
..
dbae55f
100644
(file)
--- a/
src/shared/util.c
+++ b/
src/shared/util.c
@@
-3069,7
+3069,7
@@
static int rm_rf_internal(const char *path, bool only_dirs, bool delete_root, bo
fd = open(path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW|O_NOATIME);
if (fd < 0) {
- if (errno != ENOTDIR)
+ if (errno != ENOTDIR
&& errno != ELOOP
)
return -errno;
if (!dangerous) {