]> git.sur5r.net Git - openldap/commitdiff
Fix tmp file removal.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 8 Jan 1999 19:51:15 +0000 (19:51 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 8 Jan 1999 19:51:15 +0000 (19:51 +0000)
servers/slapd/Makefile.in
servers/slapd/back-ldbm/alias.c

index 5b0c6ed0d4a36caeef64a8da5ab348f764ca3149..c010e5395f38d5bbf4739e81364a43aefd01a56e 100644 (file)
@@ -124,7 +124,7 @@ install-conf: FORCE
                        echo "PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \
                fi; \
                $(INSTALL) $(INSTALLFLAGS) -m 644 $$tmpcf $(sysconfdir)/$$i.default; \
-               $(RM) -f /tmp/slapd.$$ ; \
+               $(RM) -f $$tmpcf ; \
        done
 
 install-tools: FORCE
index f8feaebf0a14209be32472a0d8f75f6afb6be667..88edf68724241e03a770b33bc40e4eb3838f4d23 100644 (file)
@@ -156,6 +156,7 @@ char *derefDN ( Backend     *be,
          free (newDN);
          newDN = NULL;
          free (remainder);
+         remainder = NULL;
          break; /*  no associated entry, dont deref */
        }
        else {