2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

uid_t / gid_t are usually declared unsigned the days. use format %lu and

cast to (unsigned long) to make sure.
This commit is contained in:
Mark Andrews
1999-10-29 06:19:56 +00:00
parent 30020941e4
commit 56b048781d

View File

@@ -273,11 +273,11 @@ dns_c_ctrl_print(isc_log_t *lctx,
fprintf(fp, ";\n"); fprintf(fp, ";\n");
} else { } else {
/* The "#" means force a leading zero */ /* The "#" means force a leading zero */
fprintf(fp, "unix \"%s\" perm %#o owner %d group %d;\n", fprintf(fp, "unix \"%s\" perm %#o owner %lu group %lu;\n",
ctl->u.unix_v.pathname, ctl->u.unix_v.pathname,
ctl->u.unix_v.perm, ctl->u.unix_v.perm,
ctl->u.unix_v.owner, (unsigned long)ctl->u.unix_v.owner,
ctl->u.unix_v.group); (unsigned long)ctl->u.unix_v.group);
} }
} }