]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 192c9bdf546bc4bb5dad448ce6d2293ffa2a0fa3..23c6c0dc24260faae2fed3baae17427f84944e7a 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",