1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

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

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;
}