diff options
author | Ivan Shapovalov <intelfx@intelfx.name> | 2018-06-08 15:09:44 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-08 17:52:18 +0200 |
commit | ee73a176a2c6c60c7ea22259a55ed514f3001688 (patch) | |
tree | 0ba2a1ff455eccfcfade52b0e901c46b403f8fe8 /src/nss-mymachines | |
parent | 194c03c839b23261d005d3b3a8ab197be53492a7 (diff) | |
download | systemd-ee73a176a2c6c60c7ea22259a55ed514f3001688.tar.gz |
mymachines: fix getgrnam()
getgrnam() was returning input gid instead of the mapped one. Fix that.
Diffstat (limited to 'src/nss-mymachines')
-rw-r--r-- | src/nss-mymachines/nss-mymachines.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c index d8a35caa9b..96e7d69bcb 100644 --- a/src/nss-mymachines/nss-mymachines.c +++ b/src/nss-mymachines/nss-mymachines.c @@ -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; |