yggdrasil-go/cmd/yggdrasil
Klemens Nanni ad3be5a04a
Lookup user/group by ID first, then by name to improve error message
`-user foo` would fail with an ugly
	`panic: strconv.Atoi: parsing "foo": invalid syntax`
as returned by `user.LookupId()`, whereas `user.Lookup()` nicely says
	`panic: user: unknown user foo`

In chuser() it does not matter whether we check by ID or name first,
so flip the order to get sensible logs without `fmt.Errorf()` wrapping.
2024-11-12 01:58:07 +03:00
..
chuser_other.go argument to change uid/gid (#927) 2024-09-22 15:46:54 +00:00
chuser_unix.go Lookup user/group by ID first, then by name to improve error message 2024-11-12 01:58:07 +03:00
main.go update ironwood dependency 2024-09-28 18:52:04 -05:00