mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
mymachines: fix getgrnam()
getgrnam() was returning input gid instead of the mapped one. Fix that.
This commit is contained in:
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user