From: Andre Noll Date: Sun, 18 Nov 2007 23:32:59 +0000 (+0100) Subject: aft.c: Do not print directory if LS_FLAG_FULL_PATH was not given. X-Git-Tag: v0.3.0~113^2~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=374c687627d7f7bf2e73b1f934404392db994743;p=paraslash.git aft.c: Do not print directory if LS_FLAG_FULL_PATH was not given. --- diff --git a/aft.c b/aft.c index 192c9bdf..23c6c0dc 100644 --- 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",