[Rpm-maint] [rpm-software-management/rpm] Add back support for NSS-based user/group resolution (PR #4085)

Michal Domonkos notifications at github.com
Tue Jan 20 11:46:57 UTC 2026


@dmnks commented on this pull request.



> @@ -17,37 +20,39 @@ using std::unordered_map;
 using std::string;
 
 struct rpmug_s {
-    char *pwpath;
-    char *grppath;
-    unordered_map<uid_t,string> uidMap;
-    unordered_map<gid_t,string> gidMap;
-    unordered_map<string,uid_t> unameMap;
-    unordered_map<string,gid_t> gnameMap;
+    char *path;
+    int fromMacro;

The thing with using "nss" is that that's just an implementation detail of glibc in particular. Other libc implementations may not use nss at all. We still do mention "nss" in the commit messages of course, but that's a different matter as those cover the "why".

The other suggestions should work, though, thanks :smile: 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4085#discussion_r2708008418
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4085/review/3681783950 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260120/9a821de5/attachment-0001.htm>


More information about the Rpm-maint mailing list