Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSD fails with the error 'failed to get the group name' #87

Closed
ls12styler opened this issue Dec 20, 2018 · 3 comments
Closed

LSD fails with the error 'failed to get the group name' #87

ls12styler opened this issue Dec 20, 2018 · 3 comments
Labels
kind/bug Something isn't working

Comments

@ls12styler
Copy link

When attached to my company's LAN, LSD works as per the "Expected behaviour". However, when attached to my home network, LSD fails as per the "Actual behaviour".

I can see that this is is related to: #48 which is now closed.

I'm suspecting this is down to the fact that when I'm not on the office LAN, my "group" shows up as a number, rather than an actual name, so no name exists.

Is it possible to request that this fails gracefully?

Expected behaviour

Office LAN

➜  ~ ls -l
drwx--x---  myusername  MYCOMPANY\Users       -   Thu Sep 27 12:24:30 2018    Applications

Home LAN

➜  ~ ls -l
drwx--x---  myusername  123456       -   Thu Sep 27 12:24:30 2018    Applications

Actual behaviour

Office LAN behaves as expected.

Home LAN

➜  ~ RUST_BACKTRACE=1 ls -l
thread 'main' panicked at 'failed to get the group name', libcore/option.rs:1008:5
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
@ls12styler ls12styler added the kind/bug Something isn't working label Dec 20, 2018
@vercas
Copy link

vercas commented Dec 21, 2018

Same thing happens with user names.
Also, it happens even without -l. Is this another bug? I don't see why it would need user/group name if not in long mode.

@Peltoche
Copy link
Collaborator

Hi @vercas,

For now all the metadata are parsed even without the -l flag, so the this (bad) behavior is expected.

@Peltoche
Copy link
Collaborator

Hi @ls12styler ,

I just created a PR to make a fallback to the UID/GID if the groupname is not available. It should fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants