lsd-rs / lsd

The next gen ls command
Apache License 2.0
13.54k stars 439 forks source link

lsd cannot display some directories #664

Closed misiektoja closed 2 years ago

misiektoja commented 2 years ago

Expected behavior

Commands run as root.

» ls -al /itemhistory total 4 drwx------ 3 postgres postgres 30 Nov 21 2019 . dr-xr-xr-x. 20 root root 4096 Mar 20 23:53 .. drwx------ 3 postgres postgres 19 Nov 21 2019 PG_9.4_201409291

» ls -al /var/lib/pgsql/9.4-bdr total 8 drwx------ 4 postgres postgres 51 Mar 12 2018 . drwx------ 7 postgres postgres 226 May 26 19:52 .. drwx------ 2 postgres postgres 6 Mar 12 2018 backups drwx------ 20 postgres postgres 4096 May 26 19:48 data -rw------- 1 postgres postgres 1401 Oct 31 2017 initdb.log

Actual behavior

Commands run as root. Dirs belong to postgres.postgres and lsd has some issues displaying it.

» lsd -al /itemhistory cannot access '/itemhistory': No such file or directory (os error 2)

» lsd -al /var/lib/pgsql/9.4-bdr cannot access '/var/lib/pgsql/9.4-bdr': No such file or directory (os error 2)

misiektoja commented 2 years ago

Also root-owned files are affected. I have no clue what is going on.

[20:48:23] root::nclm ➜ /var/cache/yum » lsd -al d--x--x--x root root 6 B Fri Mar 11 10:20:59 2022  . drwxr-xr-x root root 267 B Thu May 26 20:04:19 2022  ..

[20:48:28] root::nclm ➜ /var/cache/yum » ls -al total 0 drwxr-xr-x. 3 root root 20 Apr 2 2020 . drwxr-xr-x. 15 root root 185 Mar 20 23:53 .. drwxr-xr-x. 3 root root 15 Oct 3 2017 x86_64

zwpaper commented 2 years ago

hi @misiektoja , we have released the v0.21.0, please check the newest version and see if there is still problems

misiektoja commented 2 years ago

Thx, I thought 0.16 is the newest one since it is the last one available in snap for CentOS 7.x. But I installed 0.22 binary and now everything is good. Thx.