]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: introduce get_process_cmdline_strv()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Mar 2023 16:05:38 +0000 (01:05 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Mar 2023 15:09:15 +0000 (17:09 +0200)
commit201423d80144d60b48144c6283d669b63a80aabe
tree1730feed29118b18505777ef0d0aed2b6b086248
parent19279652c0b59efbe138c28af563e8d3968bffa1
process-util: introduce get_process_cmdline_strv()

The reason why get_process_cmdline() is so complicated is that we
need to escape and quote arguments for building a single result
string.

That's necessary when we want to log or print the command line.
However, when we want to parse the command line, it is not necessary
that the result is a single string, but can be strv.

This will be used when we parse the command line.
src/basic/process-util.c
src/basic/process-util.h
src/test/test-process-util.c