lsd-rs / lsd-rs/lsd

[Bug]: LSD -l permissions incorrect and user/group are both always "?"

Open
#1,053 1 comment 0 reactions 1 assignee Claimed by @zwpaper View on GitHub
Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

### Version

- [X] latest

### version

1.1.2

### What OS are you seeing the problem on?

MSYS2/UCRT64

### installation

pacman -S mingw-w64-ucrt-x86_64-lsd

### term

xterm

### ls-colors

Empty

### What happened?

Here is an example of what my home directory looks like with LS:

```
/home/tyler.shellberg >ls -al
total 37
drwxr-xr-x 1 tyler.shellberg Domain Users 0 May 22 21:15 .
drwxr-xr-x 1 tyler.shellberg Domain Users 0 Jan 23 15:47 ..
-rw-r--r-- 1 tyler.shellberg Domain Users 2677 May 17 10:33 .bash_history
-rw-r--r-- 1 tyler.shellberg Domain Users 21 Feb 7 2023 .bash_logout
-rw-r--r-- 1 tyler.shellberg Domain Users 1256 Feb 7 2023 .bash_profile
-rw-r--r-- 1 tyler.shellberg Domain Users 5828 Feb 7 2023 .bashrc
drwxr-xr-x 1 tyler.shellberg Domain Users 0 Apr 17 14:15 .cache
drwxr-xr-x 1 tyler.shellberg Domain Users 0 May 15 16:52 .config
drwxr-xr-x 1 tyler.shellberg Domain Users 0 Feb 26 13:26 .dbus-keyrings
-rw-r--r-- 1 tyler.shellberg Domain Users 434 Mar 22 11:29 .gitconfig
-rw-r--r-- 1 tyler.shellberg Domain Users 415 Mar 22 11:27 .gitconfig.bak
drwxr-xr-x 1 tyler.shellberg Domain Users 0 Jan 29 09:21 .gnupg
-rw-r--r-- 1 tyler.shellberg Domain Users 20 May 22 21:15 .lesshst
drwxr-xr-x 1 tyler.shellberg Domain Users 0 Jan 24 08:48 .local
-rw-r--r-- 1 tyler.shellberg Domain Users 29 May 15 16:48 .minttyrc
-rw-r--r-- 1 tyler.shellberg Domain Users 1008 Feb 7 2023 .profile
drwxr-xr-x 1 tyler.shellberg Domain Users 0 May 23 11:28 .ssh
```

Here is what it looks like with LSD and my current settings:

```
Permissions User Group Size Date Modified Name
d---- ? ? 0 B Wed Apr 17 14:15:44 2024 󰃨 .cache
d---- ? ? 0 B Wed May 15 16:52:39 2024  .config
d---- ? ? 4.0 KB Mon Feb 26 13:26:31 2024  .dbus-keyrings
d---- ? ? 0 B Mon Jan 29 09:21:14 2024 󰢬 .gnupg
d---- ? ? 0 B Wed Jan 24 08:48:11 2024  .local
d---- ? ? 4.0 KB Thu May 23 11:28:22 2024 󰢬 .ssh
.a--- ? ? 2.6 KB Fri May 17 10:33:03 2024 󱆃 .bash_history
.a--- ? ? 21 B Tue Feb 7 08:09:29 2023 󱆃 .bash_logout
.a--- ? ? 1.2 KB Tue Feb 7 08:09:29 2023 󱆃 .bash_profile
.a--- ? ? 5.7 KB Tue Feb 7 08:09:29 2023 󱆃 .bashrc
.a--- ? ? 434 B Fri Mar 22 11:29:31 2024  .gitconfig
.a--- ? ? 415 B Fri Mar 22 11:27:27 2024 󰁯 .gitconfig.bak
.a--- ? ? 20 B Wed May 22 21:15:44 2024  .lesshst
.a--- ? ? 29 B Wed May 15 16:48:59 2024  .minttyrc
.a--- ? ? 1008 B Tue Feb 7 08:09:29 2023  .profile
```

As you can see, both user and group are always "?", and the permissions appears completely wrong.

Here is the contents of my config.yaml:

```
header: true

sorting:
dir-grouping: first
```

### What expected?

LSD should output similar information to LS about permissions and user/group.

### What else?

I'm using Fish shell, if that matters.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.