Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109067162
D48504.id149661.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
783 B
Referenced Files
None
Subscribers
None
D48504.id149661.diff
View Options
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -1432,10 +1432,22 @@
p = buf;
/* Print details. */
fprintf(metafp, ".%s%s type=%s", *p ? "/" : "", p, type);
- if (owner)
- fprintf(metafp, " uname=%s", owner);
- if (group)
- fprintf(metafp, " gname=%s", group);
+ if (owner) {
+ id_t id;
+
+ if (parseid(owner, &id))
+ fprintf(metafp, " uid=%jd", (intmax_t)id);
+ else
+ fprintf(metafp, " uname=%s", owner);
+ }
+ if (group) {
+ id_t id;
+
+ if (parseid(group, &id))
+ fprintf(metafp, " gid=%jd", (intmax_t)id);
+ else
+ fprintf(metafp, " gname=%s", group);
+ }
fprintf(metafp, " mode=%#o", mode);
if (slink) {
strsnvis(buf, buflen, slink, VIS_CSTYLE, extra);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 9:08 AM (12 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16018863
Default Alt Text
D48504.id149661.diff (783 B)
Attached To
Mode
D48504: install: Fix METALOG ouptut for numeric -o and -g args
Attached
Detach File
Event Timeline
Log In to Comment