Closed Jisu-Woniu closed 3 months ago
This is a comparison between broot and lsd, both showing the same file mount.cifs, which has permission rwsr-sr-x:
broot
lsd
mount.cifs
rwsr-sr-x
The two s in permission means setuid and setgid respectively, but broot does not recognize those bit and only shows x instead.
s
setuid
setgid
x
I think this is the code involved:
https://github.com/Canop/broot/blob/df315d6b11a74b289c5276e741b854c0d47738ae/src/display/permissions.rs#L63-L67
The has_extra method can check the correspond permission.
has_extra
Yes. As you searched til the umask crate, you may as well make a PR, right ?
This is a comparison between
broot
andlsd
, both showing the same filemount.cifs
, which has permissionrwsr-sr-x
:The two
s
in permission meanssetuid
andsetgid
respectively, but broot does not recognize those bit and only showsx
instead.