Page MenuHomeFreeBSD

D57179.diff
No OneTemporary

D57179.diff

diff --git a/lib/libc/posix1e/acl_id_to_name.c b/lib/libc/posix1e/acl_id_to_name.c
--- a/lib/libc/posix1e/acl_id_to_name.c
+++ b/lib/libc/posix1e/acl_id_to_name.c
@@ -67,7 +67,7 @@
else
p = getpwuid(id);
if (!p)
- i = snprintf(buf, buf_len, "%d", id);
+ i = snprintf(buf, buf_len, "%ju", (uintmax_t)id);
else
i = snprintf(buf, buf_len, "%s", p->pw_name);
@@ -83,7 +83,7 @@
else
g = getgrgid(id);
if (g == NULL)
- i = snprintf(buf, buf_len, "%d", id);
+ i = snprintf(buf, buf_len, "%ju", (uintmax_t)id);
else
i = snprintf(buf, buf_len, "%s", g->gr_name);
diff --git a/lib/libc/posix1e/acl_to_text_nfs4.c b/lib/libc/posix1e/acl_to_text_nfs4.c
--- a/lib/libc/posix1e/acl_to_text_nfs4.c
+++ b/lib/libc/posix1e/acl_to_text_nfs4.c
@@ -69,7 +69,7 @@
else
pwd = NULL;
if (pwd == NULL)
- snprintf(str, size, "user:%d", (unsigned int)*id);
+ snprintf(str, size, "user:%ju", (uintmax_t)*id);
else
snprintf(str, size, "user:%s", pwd->pw_name);
acl_free(id);
@@ -89,7 +89,7 @@
else
grp = NULL;
if (grp == NULL)
- snprintf(str, size, "group:%d", (unsigned int)*id);
+ snprintf(str, size, "group:%ju", (uintmax_t)*id);
else
snprintf(str, size, "group:%s", grp->gr_name);
acl_free(id);

File Metadata

Mime Type
text/plain
Expires
Fri, Jul 24, 2:38 AM (3 m, 10 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35426111
Default Alt Text
D57179.diff (1 KB)

Event Timeline