[systemd-devel] [PATCH] sysv-generator: only allow regular files in enumerate_sysv()

Cristian Rodríguez crrodriguez at opensuse.org
Wed Jan 14 05:56:38 PST 2015


El 14/01/15 a las 10:39, Colin Guthrie escribió:
> Cristian Rodríguez wrote on 14/01/15 13:34:
>> El 14/01/15 a las 09:21, Colin Guthrie escribió:
>>> If I read the dirent_ensure_type and dirent_is_file code properly, this
>>> would mean that symlinks to valid sysvinit scripts are now skipped.
>>
>> dirent_is_file() returns true for symlinks.
>
> Jeez, I really failed at reading the code today.... sorry for the noise!
>
> (that said, as a general question what happens in dirent_is_file() if
> there is a symlink to a directory?)
>
> Col
>

The other way around in this case is to ignore EISDIR like ENOENT is 
ignored in load_sysv()


More information about the systemd-devel mailing list