chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cgroup: rename cg_update_unified() → cg_unified_update()
[elogind.git]
/
src
/
basic
/
fd-util.c
diff --git
a/src/basic/fd-util.c
b/src/basic/fd-util.c
index 3eb3324b57bc2ae53ecbca7e4baf65be3c3f50ab..13b025f4407ea6d8fe3df72273d2562b78bb42ae 100644
(file)
--- a/
src/basic/fd-util.c
+++ b/
src/basic/fd-util.c
@@
-234,12
+234,9
@@
int close_all_fds(const int except[], unsigned n_except) {
return r;
}
-
while ((de = readdir(d))
) {
+
FOREACH_DIRENT(de, d, return -errno
) {
int fd = -1;
- if (hidden_or_backup_file(de->d_name))
- continue;
-
if (safe_atoi(de->d_name, &fd) < 0)
/* Let's better ignore this, just in case */
continue;