chiark / gitweb /
ptyfwd: Set the size of the PTY base on the size of stdout, not stdin.
[elogind.git] / src / journal / journalctl.c
index a5091042d4b48899fd19d055258bf211f3d9a1c7..f74dde9c485e443e3e05354f1c57d24875cc1c54 100644 (file)
@@ -48,7 +48,6 @@
 #include "fileio.h"
 #include "build.h"
 #include "pager.h"
-#include "logs-show.h"
 #include "strv.h"
 #include "journal-internal.h"
 #include "journal-def.h"
@@ -659,7 +658,7 @@ static int add_matches(sd_journal *j, char **args) {
                                 if (executable_is_script(path, &interpreter) > 0) {
                                         _cleanup_free_ char *comm;
 
-                                        comm = strndup(path_get_file_name(path), 15);
+                                        comm = strndup(basename(path), 15);
                                         if (!comm)
                                                 return log_oom();