Commit 1a6f4df6 authored by Lennart Poettering's avatar Lennart Poettering

dirent: support DT_UNKNOWN where necessary for compat with reiserfs

parent fc7a744c
......@@ -24,6 +24,12 @@ F15:
Features:
* failure error string in "systemctl status"
* send SIGCONT before SIGTERM
* make sure timeouts are applied to Type=oneshot services.
* maybe implement "systemctl mask" and "systemctl unmask", but not
document it? When doing that add switch to make this temporary by
placing mask links in /dev.
......
......@@ -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");
......
......@@ -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");
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment