]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: don't use overly large buffer to store process command line
authorMichal Sekletar <msekleta@redhat.com>
Tue, 22 Jan 2019 13:29:50 +0000 (14:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 26 Jan 2019 12:54:29 +0000 (13:54 +0100)
commiteb1ec489eef8a32918bbfc56a268c9d10464584d
treee348f46431fc61a88e3105ecad0a80ada54ce9f1
parentc11cd775dbc3b5cff9c2d8a115aad5632f54d9d8
process-util: don't use overly large buffer to store process command line

Allocate new string as a return value and free our "scratch pad"
buffer that is potentially much larger than needed (up to
_SC_ARG_MAX).

Fixes #11502
src/basic/process-util.c