diff options
author | 2016-07-12 07:00:46 +0300 | |
---|---|---|
committer | 2016-07-12 07:00:46 +0300 | |
commit | 834ca520e8a54291c91e46d9a3e10dce9b806e57 (patch) | |
tree | 21a515eb1c49039d85c5742d6c6eed623b252ae9 /src | |
parent | Remove redundant code (diff) | |
download | firejail-834ca520e8a54291c91e46d9a3e10dce9b806e57.tar.gz firejail-834ca520e8a54291c91e46d9a3e10dce9b806e57.tar.zst firejail-834ca520e8a54291c91e46d9a3e10dce9b806e57.zip |
Small fix
args prepared here are only for shell
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 366b41f88..91f39ed71 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -2022,12 +2022,7 @@ int main(int argc, char **argv) { | |||
2022 | char *ptr1 = cfg.command_line; | 2022 | char *ptr1 = cfg.command_line; |
2023 | char *ptr2 = cfg.window_title; | 2023 | char *ptr2 = cfg.window_title; |
2024 | for (i = 0; i < argcnt; i++) { | 2024 | for (i = 0; i < argcnt; i++) { |
2025 | if (arg_shell_none){ | 2025 | sprintf(ptr1, "\'%s\' ", argv[i + prog_index]); |
2026 | sprintf(ptr1, "%s ", argv[i + prog_index]); | ||
2027 | } | ||
2028 | else { | ||
2029 | sprintf(ptr1, "\'%s\' ", argv[i + prog_index]); | ||
2030 | } | ||
2031 | sprintf(ptr2, "%s ", argv[i + prog_index]); | 2026 | sprintf(ptr2, "%s ", argv[i + prog_index]); |
2032 | 2027 | ||
2033 | ptr1 += strlen(ptr1); | 2028 | ptr1 += strlen(ptr1); |