mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-29 18:09:11 -04: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:
parent
30020941e4
commit
56b048781d
1 changed files with 3 additions and 3 deletions
|
|
@ -273,11 +273,11 @@ dns_c_ctrl_print(isc_log_t *lctx,
|
|||
fprintf(fp, ";\n");
|
||||
} else {
|
||||
/* 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.perm,
|
||||
ctl->u.unix_v.owner,
|
||||
ctl->u.unix_v.group);
|
||||
(unsigned long)ctl->u.unix_v.owner,
|
||||
(unsigned long)ctl->u.unix_v.group);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue