Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827227 - x11-wm/openbox-3.6.1-r3: OpenBox should not enumerate all groups at startup.
Summary: x11-wm/openbox-3.6.1-r3: OpenBox should not enumerate all groups at startup.
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
Keywords: PATCH
Depends on:
Reported: 2021-11-25 06:22 UTC by Dmitry A. Bakshaev
Modified: 2021-11-25 06:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

replace getgrent -> getgroups (808138_Replace-getgrent-with-getgroups.patch,1.65 KB, patch)
2021-11-25 06:24 UTC, Dmitry A. Bakshaev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry A. Bakshaev 2021-11-25 06:22:21 UTC
Openbox iterates through all groups on startup. In our LDAP environment with
activated user private groups, this slows down the startup of openbox

Reproducible: Always

Steps to Reproduce:
1. start openbox (or obconf)

Actual Results:  
took a long time to get started 

Expected Results:  
appeared instantly

The usage of getgrent is responsible for these delays. The patch
supplied uses getgroups instead of getgrent, with performs much better and
respects local nscd caches.

our enviroment:
getent group|wc -l
getent passwd|wc -l

patch available on:
Comment 1 Dmitry A. Bakshaev 2021-11-25 06:24:17 UTC
Created attachment 756148 [details, diff]
replace getgrent -> getgroups