[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:54:36 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;

Just for the context of what I mean (this is from `nsswitch.conf(5)`):

> Traditionally, there was only a single source for service information, often in the form of a single configuration file (e.g., /etc/passwd).  However, as other name  services,  such as the Network Information Service (NIS) and the Domain Name Service (DNS), became popular, a method was needed that would be more flexible than fixed search orders coded into the C library.  The Name Service Switch mechanism, which was based on the mechanism used by Sun Microsystems in the Solaris 2 C  library,  introduced  a cleaner solution to the problem.


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

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


More information about the Rpm-maint mailing list