@pmatilai commented on this pull request.


>  
     return 0;
 }
 
 const char * rpmugUname(uid_t uid)
 {
-    static uid_t lastUid = (uid_t) -1;
-    static char * lastUname = NULL;
-
-    if (uid == (uid_t) -1) {
-       lastUid = (uid_t) -1;

Yup, and as an added bonus it now never contains any invalid uid/gid because 0 
is just root which we handle in the code separately. 

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

Message ID: <rpm-software-management/rpm/pull/2843/review/1831812...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to