chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7a9512b
)
clean-ipc: don't filter out '.' and '..' twice
author
Lennart Poettering
<lennart@poettering.net>
Thu, 28 Jul 2016 07:51:25 +0000
(09:51 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:49 +0000
(08:50 +0200)
src/shared/clean-ipc.c
patch
|
blob
|
history
diff --git
a/src/shared/clean-ipc.c
b/src/shared/clean-ipc.c
index 5ba296cc8ca76e462ad68bbdae55f75cb2c26572..55ae1f9ba524a4849314839793cc747290ec67ca 100644
(file)
--- 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, "..", "."))
@@
-296,7
+296,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];