diff options
Diffstat (limited to 'src/firejail/caps.c')
-rw-r--r-- | src/firejail/caps.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/firejail/caps.c b/src/firejail/caps.c index d623c5fd3..de7c93b48 100644 --- a/src/firejail/caps.c +++ b/src/firejail/caps.c | |||
@@ -419,10 +419,6 @@ void caps_print_filter(pid_t pid) { | |||
419 | // if the pid is that of a firejail process, use the pid of the first child process | 419 | // if the pid is that of a firejail process, use the pid of the first child process |
420 | char *comm = pid_proc_comm(pid); | 420 | char *comm = pid_proc_comm(pid); |
421 | if (comm) { | 421 | if (comm) { |
422 | // remove \n | ||
423 | char *ptr = strchr(comm, '\n'); | ||
424 | if (ptr) | ||
425 | *ptr = '\0'; | ||
426 | if (strcmp(comm, "firejail") == 0) { | 422 | if (strcmp(comm, "firejail") == 0) { |
427 | pid_t child; | 423 | pid_t child; |
428 | if (find_child(pid, &child) == 0) { | 424 | if (find_child(pid, &child) == 0) { |