Patch-Source: https://github.com/chimera-linux/sd-tools/commit/da521ac4583cf0e3188bf7caf528d7b4a9730b7f --- From da521ac4583cf0e3188bf7caf528d7b4a9730b7f Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 4 Apr 2025 11:42:40 +0200 Subject: [PATCH] user-util: fix range handling on 32-bit platforms Closes https://github.com/chimera-linux/sd-tools/pull/3 Fixes https://github.com/chimera-linux/sd-tools/issues/1 --- src/shared/user-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/user-util.c b/src/shared/user-util.c index 4625a6c..72e465c 100644 --- a/src/shared/user-util.c +++ b/src/shared/user-util.c @@ -56,7 +56,7 @@ int parse_uid(const char *s, uid_t *ret) { r = -EINVAL; } else { char *end = NULL; - unsigned long v = strtoul(s, &end, 10); + unsigned long long v = strtoull(s, &end, 10); if (!end || *end) r = -EINVAL; else if (v > UINT_MAX)