summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-11 12:24:33 -0600
committerKarl Williamson <khw@cpan.org>2020-03-18 14:29:46 -0600
commit5baa389e84c8348c7335cd8e58d1a2f6f917f7e4 (patch)
tree9c680609ae48e379e7f855f03d4b9613d664682c /sv.c
parent5f47881659a0e7bfbe5db3cda32beec498c07696 (diff)
downloadperl-5baa389e84c8348c7335cd8e58d1a2f6f917f7e4.tar.gz
reentr.c: Handle getspnam()
This has never worked to increase the buffer size if necessary. Apparently the default has always been big enough. But this commit fixes it to retry if too small. I don't think there is a way to write tests for this. getspnam is called only as a small part of pp_gpwent, and is not part of the API, and is called only when run as root. I did test it on my box, with gdb, starting with a buffer size of 1, and single stepping and observing that it works as I expected.
Diffstat (limited to 'sv.c')
0 files changed, 0 insertions, 0 deletions