mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user