Print full username and groupname for ls command
Denys Vlasenko
vda.linux at googlemail.com
Sun Feb 25 00:06:15 UTC 2024
I think we can simply stop the truncation, like this:
- column += printf("%-8.8s %-8.8s ",
+ column += printf("%-8s %-8s ",
without additional loop to measure max length.
On Mon, Feb 19, 2024 at 3:09 PM Matthew Chae <Matthew.Chae at axis.com> wrote:
>
> Hi maintainer,
>
> Currently, when using ls, only the first 8 characters of the username and group name are printed, with the rest being truncated. However, there are often long usernames and group names, and limiting them to 8 characters can cause confusion and potential security vulnerabilities. Therefore, it would be beneficial to be able to print the full username/group name when using ls.
>
> I'm sending the patch I've mentioned for this. Can I hear your opinion?
>
> Br-Matthew Chae
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list