]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/modrdn.c
Do not set op->o_private (to the process' pid). Only abandon needed it.
[openldap] / servers / slapd / back-shell / modrdn.c
index f24831e3ac79e3bba7cc6ebe8d19e6b7a343ccf1..ddffb9149318afca99636e4e3227933144117cb4 100644 (file)
@@ -60,8 +60,7 @@ shell_back_modrdn(
                return -1;
        }
 
-       if ( (op->o_private = (void *) forkandexec( si->si_modrdn, &rfp, &wfp ))
-           == (void *) -1 ) {
+       if ( forkandexec( si->si_modrdn, &rfp, &wfp ) == (pid_t)-1 ) {
                send_ldap_error( op, rs, LDAP_OTHER,
                    "could not fork/exec" );
                return( -1 );