[Tarantool-patches] [PATCH 3/3] lua/pwd: workaround the systemd bug

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 18 14:54:45 MSK 2020


On Thu, Sep 17, 2020 at 04:51:21PM +0300, Cyrill Gorcunov wrote:
...
>  
> +--
> +-- systemd v209 sets errno is set to ENOENT in
> +-- _nss_systemd_getpwent_r and _nss_systemd_getgrent_r
> +-- when there are no more entries to enumerate.

There is a typo in comment ("is set" phrase). Updated to

+--
+-- systemd v209 sets errno to ENOENT in
+-- _nss_systemd_getpwent_r and _nss_systemd_getgrent_r
+-- when there are no more entries left to enumerate.
+--
+-- This is a bug which has been fixed later in
+-- systemd code but we have to deal with buggy
+-- environment thus ignore such error if appears.
+--
+-- See the reference for details
+-- https://github.com/systemd/systemd/issues/9585
+--
+-- The issue affects getpwent/getgrent calls only
+-- thus provide own wrappings to keep workaround
+-- in one place and do not affect any other calls
+-- where ENOENT might become a valid error case.
+--
+-- Initially we observed this issue on Fedora 29
+-- when a password database is traversed for the
+-- first time.

and force pushed.


More information about the Tarantool-patches mailing list