2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-26 16:48:29 +00:00
restic/internal
greatroar 0e155fd9a6 internal/restic: Fix UID/GID parsing
The helper function uidGidInt used strconv.ParseInt instead of
ParseUint, so it silently ignored some invalid user/group IDs.

Also, improve the error message. "Invalid UID" is more informative than
having "ParseInt" twice (*strconv.NumError displays the function name).

Finally, the user.User struct can be passed by pointer to get reduce
code size.
2022-10-14 18:21:00 +02:00
..
2022-10-14 14:33:49 +02:00
2022-07-17 13:42:23 +02:00
2022-05-11 21:36:10 +02:00
2022-10-14 14:33:49 +02:00
2021-01-30 20:19:47 +01:00