diff options
author | 2016-03-02 08:49:50 -0500 | |
---|---|---|
committer | 2016-03-02 08:49:50 -0500 | |
commit | 6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8 (patch) | |
tree | fc9d66d3e303bfc3f724af2dd53424f097ac21a8 /src/firejail/fs_logger.c | |
parent | added ipc-namespace profile command (diff) | |
download | firejail-6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8.tar.gz firejail-6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8.tar.zst firejail-6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8.zip |
cleanup
Diffstat (limited to 'src/firejail/fs_logger.c')
-rw-r--r-- | src/firejail/fs_logger.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/firejail/fs_logger.c b/src/firejail/fs_logger.c index f803982d7..058bcc1c9 100644 --- a/src/firejail/fs_logger.c +++ b/src/firejail/fs_logger.c | |||
@@ -143,10 +143,6 @@ void fs_logger_print_log(pid_t pid) { | |||
143 | // if the pid is that of a firejail process, use the pid of the first child process | 143 | // if the pid is that of a firejail process, use the pid of the first child process |
144 | char *comm = pid_proc_comm(pid); | 144 | char *comm = pid_proc_comm(pid); |
145 | if (comm) { | 145 | if (comm) { |
146 | // remove \n | ||
147 | char *ptr = strchr(comm, '\n'); | ||
148 | if (ptr) | ||
149 | *ptr = '\0'; | ||
150 | if (strcmp(comm, "firejail") == 0) { | 146 | if (strcmp(comm, "firejail") == 0) { |
151 | pid_t child; | 147 | pid_t child; |
152 | if (find_child(pid, &child) == 0) { | 148 | if (find_child(pid, &child) == 0) { |