diff options
| author | Nick Price <nick_spun.io> | 2026-06-13 21:15:17 +0000 |
|---|---|---|
| committer | Rick Macklem <rmacklem@FreeBSD.org> | 2026-06-13 21:15:17 +0000 |
| commit | 69e20977a468c9e570ee896ed7cf04969e86756d (patch) | |
| tree | 83564aed830bc454f7794634e32e4a012493e1fb | |
| parent | 511d749ecc02c6fad142e10f6c8227361b844a01 (diff) | |
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
| -rw-r--r-- | lib/libc/posix1e/acl_to_text_nfs4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_to_text_nfs4.c b/lib/libc/posix1e/acl_to_text_nfs4.c index 4f19f3a9a7b2..44d98efab6ce 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); } |
