aft.c: Do not print directory if LS_FLAG_FULL_PATH was not given.
authorAndre Noll <maan@systemlinux.org>
Sun, 18 Nov 2007 23:32:59 +0000 (00:32 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 18 Nov 2007 23:32:59 +0000 (00:32 +0100)
aft.c

diff --git a/aft.c b/aft.c
index 192c9bd..23c6c0d 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -808,9 +808,8 @@ static char *make_filename_lines(const char *path, unsigned flags)
        char *ret;
 
        if (!(flags & LS_FLAG_FULL_PATH))
-               return make_message("%s: %s\n%s:\n",
-                       status_item_list[SI_BASENAME], path,
-                       status_item_list[SI_DIRECTORY]);
+               return make_message("%s: %s\n",
+                       status_item_list[SI_BASENAME], path);
        basename = para_basename(path),
        dirname = para_dirname(path);
        ret = make_message("%s: %s\n%s: %s\n%s: %s\n",