summaryrefslogtreecommitdiff
path: root/src/tty-ask-password-agent.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-03 16:29:50 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-03 16:29:50 +0100
commit1a6f4df6c9437ed631080b7e006f666326063d36 (patch)
treee31c6ceec9cb5e6fac75def731c9b80a67680bdd /src/tty-ask-password-agent.c
parentfc7a744cc44cdb80bf9bc6304fc3f80ca2cb65f9 (diff)
dirent: support DT_UNKNOWN where necessary for compat with reiserfs
Diffstat (limited to 'src/tty-ask-password-agent.c')
-rw-r--r--src/tty-ask-password-agent.c3
1 files changed, 3 insertions, 0 deletions
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;