dirent: support DT_UNKNOWN where necessary for compat with reiserfs

This commit is contained in:
Lennart Poettering 2011-03-03 16:29:50 +01:00
parent fc7a744cc4
commit 1a6f4df6c9
4 changed files with 13 additions and 2 deletions

6
TODO
View File

@ -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.

View File

@ -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");

View File

@ -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");

View File

@ -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;