]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/user.c
Per ITS#419, don't require SLAPD_RLOOKUPS when HAVE_TCPD
[openldap] / servers / slapd / user.c
index 2613fbcfa42c8095cf77714973a2a3acd4d888d6..a309e0e80b89f585f60d23507f72cf066bd70a0b 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
@@ -120,13 +121,13 @@ slap_init_user( char *user, char *group )
     if ( got_gid ) {
        if ( setgid( gid ) != 0 ) {
            Debug( LDAP_DEBUG_ANY, "Could not set real group id to %d\n",
-                  gid, 0, 0 );
+                      (int) gid, 0, 0 );
            exit( EXIT_FAILURE );
        }
 #ifdef HAVE_SETEGID
        if ( setegid( gid ) != 0 ) {
            Debug( LDAP_DEBUG_ANY, "Could not set effective group id to %d\n",
-                  gid, 0, 0 );
+                      (int) gid, 0, 0 );
            exit( EXIT_FAILURE );
        }
 #endif
@@ -135,13 +136,13 @@ slap_init_user( char *user, char *group )
     if ( got_uid ) {
        if ( setuid( uid ) != 0 ) {
            Debug( LDAP_DEBUG_ANY, "Could not set real user id to %d\n",
-                  uid, 0, 0 );
+                      (int) uid, 0, 0 );
            exit( EXIT_FAILURE );
        }
 #ifdef HAVE_SETEUID
        if ( seteuid( uid ) != 0 ) {
            Debug( LDAP_DEBUG_ANY, "Could not set effective user id to %d\n",
-                  uid, 0, 0 );
+                      (int) uid, 0, 0 );
            exit( EXIT_FAILURE );
        }
 #endif