yggdrasil-go/cmd
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
..
genkeys Add output for threadcount and key generation time to cmd/genkey 2023-10-21 18:21:47 +01:00
yggdrasil Lookup user/group by ID first, then by name to improve error message 2024-11-12 01:58:07 +03:00
yggdrasilctl zap obsolete nonexistent command from usage (#1184) 2024-10-17 13:22:22 +01:00