One of the niceties of recurse_dir()/recurse_dir_at() is that the path argument is decoration, it's not used for actually accessing the fs in anyway. That's very handy in environments where chroots and relative paths are used, as we can path in any path we like and the recursion function will suffix with whatever it discovers but will not try to make sense of the prefix you pass. This works great, except that the recurse_dir_at() wrapper broke that: it adjusted the path if NULL to "." simply for the sake of making openat() on the top work. Let's make this adjustment more local and do it only for the openat() itself, and otherwise pass the path through the way we got it. This means: if a caller really wants the paths that are concatenated to start with a "." it can just pass that. This way the caller gets full control back of the path prefix. Win! Note that all current users of recurse_dir_at() don't pass NULL as second arg, hence this check is without any real effect for now. It's preparation for future uses however.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
