jirutka / doas-sudo-shim

sudo shim for doas
ISC License
41 stars 3 forks source link

By default, the getent command does not exist. #6

Closed fxzxmic closed 7 months ago

fxzxmic commented 1 year ago

https://github.com/jirutka/doas-sudo-shim/blob/0cf9c9b4c5c7b5a5b517f569fc9cc16ebfb08253/sudo#L59C29-L59C29 So can other commands be used instead?

jirutka commented 1 year ago

Where it doesn't exist, what distro do you use?

fxzxmic commented 1 year ago

The getent command is a part of musl-utils package on Alpine Linux.

jirutka commented 1 year ago

Yes and musl-utils is a dependency of alpine-base. However, you’re right that it’s not declared as a dependency of the doas-sudo-shim aport, and it should be. About other distros, as I know, getenv comes by default with glibc.

That said, I didn’t realise that; I’ll consider replacing it with simple sed to avoid extra dependency.

fxzxmic commented 1 year ago

OK, thanks.