summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-07-28 09:51:25 +0200
committerLennart Poettering <lennart@poettering.net>2016-08-18 22:49:48 +0200
commit91f2048c4166a5669f8013ddd5f4150443518434 (patch)
treedd1160b687dcd1ecbbbdc711628224201c8e41b1 /src/shared
parentb4c990e91b33ec0130c428a1960a60fcaa6785bc (diff)
clean-ipc: don't filter out '.' and '..' twice
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/clean-ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/clean-ipc.c b/src/shared/clean-ipc.c
index a3ac7aeb82..44b7e08ce8 100644
--- a/src/shared/clean-ipc.c
+++ b/src/shared/clean-ipc.c
@@ -207,7 +207,7 @@ static int clean_posix_shm_internal(DIR *dir, uid_t uid) {
assert(dir);
- FOREACH_DIRENT(de, dir, goto fail) {
+ FOREACH_DIRENT_ALL(de, dir, goto fail) {
struct stat st;
if (STR_IN_SET(de->d_name, "..", "."))
@@ -295,7 +295,7 @@ static int clean_posix_mq(uid_t uid) {
return log_warning_errno(errno, "Failed to open /dev/mqueue: %m");
}
- FOREACH_DIRENT(de, dir, goto fail) {
+ FOREACH_DIRENT_ALL(de, dir, goto fail) {
struct stat st;
char fn[1+strlen(de->d_name)+1];