ls: Add newline after "ls -d" output

Fixes #4030.
This commit is contained in:
Andreas Kling 2020-11-11 20:36:16 +01:00
parent 23a5a484d5
commit 5aafbdc4e8
Notes: sideshowbarker 2024-07-19 01:26:27 +09:00

View File

@ -422,7 +422,9 @@ int do_file_system_object_short(const char* path)
{
if (flag_list_directories_only) {
size_t nprinted = 0;
if (print_filesystem_object_short(path, path, &nprinted))
bool status = print_filesystem_object_short(path, path, &nprinted);
printf("\n");
if (status)
return 0;
return 2;
}