From 69e20977a468c9e570ee896ed7cf04969e86756d Mon Sep 17 00:00:00 2001 From: Nick Price Date: Sat, 13 Jun 2026 14:15:17 -0700 Subject: [PATCH] acl_to_text_nfs4.c: Fix a snprintf() for large uid Commit 6e7c10c79dea fixed a couple of snprintf()s for large uid/gid numbers above 2Gig. This patch fixes another one. Reviewed by: rmacklem Differential Revision: https://reviews.freebsd.org/D57561 --- lib/libc/posix1e/acl_to_text_nfs4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/posix1e/acl_to_text_nfs4.c b/lib/libc/posix1e/acl_to_text_nfs4.c index 4f19f3a9a7b..44d98efab6c 100644 --- a/lib/libc/posix1e/acl_to_text_nfs4.c +++ b/lib/libc/posix1e/acl_to_text_nfs4.c @@ -158,7 +158,7 @@ format_additional_id(char *str, size_t size, const acl_entry_t entry) id = (uid_t *)acl_get_qualifier(entry); if (id == NULL) return (-1); - snprintf(str, size, ":%d", (unsigned int)*id); + snprintf(str, size, ":%ju", (uintmax_t)*id); acl_free(id); }