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
commit e7173e946f
Notes: sideshowbarker 2024-07-19 01:29:30 +09:00

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