Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

broot fail to recognize `suid` and `sgid` bits when showing permission

Jisu-Woniu opened this issue · comments

This is a comparison between broot and lsd, both showing the same file mount.cifs, which has permission rwsr-sr-x:

comparison between broot and lsd

The two s in permission means setuid and setgid respectively, but broot does not recognize those bit and only shows x instead.

I think this is the code involved:

if mode.has(USER_EXEC) {
cw.queue_char(x_style, 'x')?;
} else {
cw.queue_char(n_style, '_')?;
}

The has_extra method can check the correspond permission.

Yes.
As you searched til the umask crate, you may as well make a PR, right ?