nscd restart: Use malloc instead of extend_alloca [BZ #18023]
commit318bad78b084cd510c7b672a1a0859c0df08dbb7
authorFlorian Weimer <fweimer@redhat.com>
Mon, 25 Jun 2018 15:10:15 +0000 (25 17:10 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 25 Jun 2018 15:10:15 +0000 (25 17:10 +0200)
tree530b33b954bef36b1fc0b55475c46c9700ec65f0
parent189699ab375111a25dac19f1b4f89e38d31c8b3d
nscd restart: Use malloc instead of extend_alloca [BZ #18023]

This introduces a separate function, read_cmdline, which reads the
contents of /proc/self/cmdline into a heap-allocated buffer.
ChangeLog
nscd/connections.c