projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
194c03c
)
mymachines: fix getgrnam()
author
Ivan Shapovalov
<intelfx@intelfx.name>
Fri, 8 Jun 2018 12:09:44 +0000
(15:09 +0300)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 8 Jun 2018 15:52:18 +0000
(17:52 +0200)
getgrnam() was returning input gid instead of the mapped one. Fix that.
src/nss-mymachines/nss-mymachines.c
patch
|
blob
|
history
diff --git
a/src/nss-mymachines/nss-mymachines.c
b/src/nss-mymachines/nss-mymachines.c
index
d8a35ca
..
96e7d69
100644
(file)
--- 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 =
gi
d;
+ gr->gr_gid =
mappe
d;
gr->gr_passwd = (char*) "*"; /* locked */
gr->gr_mem = (char**) buffer;