[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] commands/ls: Send correct dirname to print funcions
From: |
Daniel Kiper |
Subject: |
Re: [PATCH] commands/ls: Send correct dirname to print funcions |
Date: |
Mon, 14 Aug 2023 16:10:34 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Mon, Aug 14, 2023 at 01:16:53AM -0500, Glenn Washburn wrote:
> For each non-directory path argument to the ls command, the full path was
> being sent to the print functions, instead of the dirname. The long output
> print function expected dirname to be the directory containing the file
> and so could not open the file to get the file size because the generated
> path was incorrect. This caused the output to be a blank line.
>
> Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel