chiark / gitweb /
Get rid of our reimplementation of basename
[elogind.git] / src / journal / journalctl.c
index c44be745b861568f68a00391ec7ac19f602d4cdd..f74dde9c485e443e3e05354f1c57d24875cc1c54 100644 (file)
@@ -658,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();