diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-11 00:10:02 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-05 13:59:23 +0200 |
commit | 99009ed0f490b89fa14ca323a9ffb9b963980822 (patch) | |
tree | dc1e6b0f6eb506f9bca8225468830268c47146db /src/basic/process-util.h | |
parent | 07468a16e46dba9da8b9c8593e0c2ee5bfec3c69 (diff) | |
download | systemd-99009ed0f490b89fa14ca323a9ffb9b963980822.tar.gz |
basic/process-util: add mode where posix shell escape is used for quoting
The new flag is not used, except in tests, so no functional change yet.
This way, the command as shown can be copied-and-pasted into the shell
in more cases. For simple cases, shell quoting with "" is enough. But
$'' is needed when there are control characters in the command.
Diffstat (limited to 'src/basic/process-util.h')
-rw-r--r-- | src/basic/process-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h index 3121d82d3f..8ce6d60f39 100644 --- a/src/basic/process-util.h +++ b/src/basic/process-util.h @@ -36,6 +36,7 @@ typedef enum ProcessCmdlineFlags { PROCESS_CMDLINE_COMM_FALLBACK = 1 << 0, PROCESS_CMDLINE_USE_LOCALE = 1 << 1, PROCESS_CMDLINE_QUOTE = 1 << 2, + PROCESS_CMDLINE_QUOTE_POSIX = 1 << 3, } ProcessCmdlineFlags; int get_process_comm(pid_t pid, char **name); |