]> git.ipfire.org Git - thirdparty/systemd.git/commit
proc-cmdline: parse the whole /proc/cmdline
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 12 Jun 2023 19:05:30 +0000 (21:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Jun 2023 07:54:02 +0000 (09:54 +0200)
commitd5a937a62a8d075e33ef332d4e9817a20dad08db
tree42ae2fab1841edc4ed59ebeb27f94622b15077a8
parent0f85a0d38f89721be5897c0ecb1a6229240b4949
proc-cmdline: parse the whole /proc/cmdline

The kernel command line may contain newlines which kernel happily
accepts, but we'd ignore everything past the first newline. Let's fix
that by replacing read_one_line_file() with read_full_file().
src/basic/proc-cmdline.c
test/TEST-02-UNITTESTS/test.sh
test/units/testsuite-02.sh