mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
dirent: support DT_UNKNOWN where necessary for compat with reiserfs
This commit is contained in:
parent
fc7a744cc4
commit
1a6f4df6c9
6
TODO
6
TODO
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue