mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
mymachines: fix getgrnam()
getgrnam() was returning input gid instead of the mapped one. Fix that.
This commit is contained in:
committed by
Lennart Poettering
parent
194c03c839
commit
ee73a176a2
@@ -643,7 +643,7 @@ enum nss_status _nss_mymachines_getgrnam_r(
|
||||
strcpy(buffer + sizeof(char*), name);
|
||||
|
||||
gr->gr_name = buffer + sizeof(char*);
|
||||
gr->gr_gid = gid;
|
||||
gr->gr_gid = mapped;
|
||||
gr->gr_passwd = (char*) "*"; /* locked */
|
||||
gr->gr_mem = (char**) buffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user