diff options
Diffstat (limited to 'servers/slapd/daemon.c')
-rw-r--r-- | servers/slapd/daemon.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 18db97a..eb0f538 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * - * Copyright 1998-2022 The OpenLDAP Foundation. + * Copyright 1998-2024 The OpenLDAP Foundation. * Portions Copyright 2007 by Howard Chu, Symas Corporation. * All rights reserved. * @@ -41,8 +41,8 @@ #include "ldap_rq.h" -#ifdef HAVE_SYSTEMD_SD_DAEMON_H -#include <systemd/sd-daemon.h> +#ifdef HAVE_SYSTEMD +#include "sd-notify.h" #endif #ifdef HAVE_POLL @@ -2261,9 +2261,9 @@ slap_listener( STRLENOF( "gidNumber=4294967295+uidNumber=4294967295," "cn=peercred,cn=external,cn=auth" ) + 1 ); authid.bv_len = sprintf( authid.bv_val, - "gidNumber=%d+uidNumber=%d," + "gidNumber=%u+uidNumber=%u," "cn=peercred,cn=external,cn=auth", - (int) gid, (int) uid ); + gid, uid ); assert( authid.bv_len <= STRLENOF( "gidNumber=4294967295+uidNumber=4294967295," "cn=peercred,cn=external,cn=auth" ) ); |