summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules-load.c3
-rw-r--r--src/tmpfiles.c3
-rw-r--r--src/tty-ask-password-agent.c3
3 files changed, 7 insertions, 2 deletions
diff --git a/src/modules-load.c b/src/modules-load.c
index 3e3ccb0c2f..2dd432695f 100644
--- a/src/modules-load.c
+++ b/src/modules-load.c
@@ -43,7 +43,8 @@ static int scandir_filter(const struct dirent *d) {
return 0;
if (d->d_type != DT_REG &&
- d->d_type != DT_LNK)
+ d->d_type != DT_LNK &&
+ d->d_type != DT_UNKNOWN)
return 0;
return endswith(d->d_name, ".conf");
diff --git a/src/tmpfiles.c b/src/tmpfiles.c
index 0c3b88d35b..68af37aab0 100644
--- a/src/tmpfiles.c
+++ b/src/tmpfiles.c
@@ -775,7 +775,8 @@ static int scandir_filter(const struct dirent *d) {
return 0;
if (d->d_type != DT_REG &&
- d->d_type != DT_LNK)
+ d->d_type != DT_LNK &&
+ d->d_type != DT_UNKNOWN)
return 0;
return endswith(d->d_name, ".conf");
diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c
index a9d06ac001..35e4d63a8a 100644
--- a/src/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent.c
@@ -507,6 +507,9 @@ static int show_passwords(void) {
int q;
char *wall;
+ /* We only support /dev on tmpfs, hence we can rely on
+ * d_type to be reliable */
+
if (de->d_type != DT_REG)
continue;