1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

ls: print inodes in short output format when -i arg is supplied

This commit is contained in:
Brendan Coles 2020-11-09 02:55:44 +00:00 committed by Andreas Kling
parent 744af11991
commit e7173e946f

View file

@ -376,6 +376,9 @@ static bool print_filesystem_object_short(const char* path, const char* name, si
return false;
}
if (flag_show_inode)
printf("%08u ", st.st_ino);
*nprinted = print_name(st, name, nullptr, path);
return true;
}