[tarantool-patches] Re: [PATCH] lua: pwd: fix passwd and group traversal

Kirill Yukhin kyukhin at tarantool.org
Mon Aug 26 18:08:06 MSK 2019


Hello,

On 23 авг 04:57, Alexander Turenko wrote:
> CentOS 6 and FreeBSD 12 implementations of getpwuid() rewind
> setpwent()-{getpwent()}-endpwent() loop to a start that leads to a hang
> during pwd.getpwall() invoke. The same is true for a getgrgid() call
> during setgrent()-{getgrent()}-endgrent() loop.
> 
> The commit modifies pwd module to avoid getpwuid() calls during passwd
> database traversal and to avoid getgrgid() calls when traversing groups.
> 
> The commit also fixes the important regression on CentOS 6 after
> f5d8331e833d6a29dc7a869e681e03fb8e03a5f8 ('lua: workaround
> pwd.getpwall() issue on Fedora 29'): tarantool hungs during startup due
> to added getpwall() call. This made tarantool unusable on CentOS 6 at
> all.
> 
> Aside of that the commit fixes another pwd.getgrall() problem: the
> function gaves password entries instead of group entries.
> 
> Fixes #4428.
> Fixes #4447.
> Part of #4271.

I've checked the patch into 1.10, 2.1, 2.2 and master.

--
Regards, Kirill Yukhin




More information about the Tarantool-patches mailing list