summaryrefslogtreecommitdiff
path: root/bin/named/unix/os.c
diff options
context:
space:
mode:
authorLaMont Jones <lamont@debian.org>2009-11-16 19:26:14 -0600
committerLaMont Jones <lamont@debian.org>2009-11-16 19:26:14 -0600
commite3246fedd37d119c2bf6efb28d7492b3a595373a (patch)
treeaed2129efc2efb2bb526e1e4abf9080d3ec9ab6b /bin/named/unix/os.c
parentf133ad6c8e92691761b732d65cca85e4e27d6f51 (diff)
downloadbind9-e3246fedd37d119c2bf6efb28d7492b3a595373a.tar.gz
9.7.0a3
Diffstat (limited to 'bin/named/unix/os.c')
-rw-r--r--bin/named/unix/os.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c
index 0f1159d2..a44d6c1c 100644
--- a/bin/named/unix/os.c
+++ b/bin/named/unix/os.c
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: os.c,v 1.100 2009/08/05 17:35:33 each Exp $ */
+/* $Id: os.c,v 1.101 2009/08/13 07:04:38 marka Exp $ */
/*! \file */
@@ -737,8 +737,8 @@ setperms(uid_t uid, gid_t gid) {
#if defined(HAVE_SETEGID)
if (getegid() != gid && setegid(gid) == -1) {
isc__strerror(errno, strbuf, sizeof(strbuf));
- ns_main_earlywarning("unable to set effective gid to %d: %s",
- gid, strbuf);
+ ns_main_earlywarning("unable to set effective gid to %ld: %s",
+ (long)gid, strbuf);
}
#elif defined(HAVE_SETRESGID)
if (getresgid(&tmpg, &oldgid, &tmpg) == -1 || oldgid != gid) {
@@ -753,8 +753,8 @@ setperms(uid_t uid, gid_t gid) {
#if defined(HAVE_SETEUID)
if (geteuid() != uid && seteuid(uid) == -1) {
isc__strerror(errno, strbuf, sizeof(strbuf));
- ns_main_earlywarning("unable to set effective uid to %d: %s",
- uid, strbuf);
+ ns_main_earlywarning("unable to set effective uid to %ld: %s",
+ (long)uid, strbuf);
}
#elif defined(HAVE_SETRESUID)
if (getresuid(&tmpu, &olduid, &tmpu) == -1 || olduid != uid) {