Dipit Grover has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1176763?usp=email )
Change subject: uid2grp: Handle ERANGE return code when calling pw-functions
......................................................................
uid2grp: Handle ERANGE return code when calling pw-functions
The pw-functions accept a buffer for holding the strings in
the fetched passwd entry. The buffer's size is derived from
the system config, which should be sufficient in most cases.
To handle the cases where this buffer size is not sufficient,
this CL calls these functions iteratively, while increasing
the buffer size in each iteration.
Change-Id: I5f049684f16d26cb795fc9c42dd23c0593fb5504
Signed-off-by: Dipit Grover <dipit(a)google.com>
---
M src/idmapper/idmapper.c
M src/include/idmapper.h
M src/support/uid2grp.c
3 files changed, 55 insertions(+), 26 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/63/1176763/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1176763?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I5f049684f16d26cb795fc9c42dd23c0593fb5504
Gerrit-Change-Number: 1176763
Gerrit-PatchSet: 1
Gerrit-Owner: Dipit Grover <dipitgrover(a)gmail.com>