From: Kurt Zeilenga Date: Fri, 8 Jan 1999 19:51:15 +0000 (+0000) Subject: Fix tmp file removal. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~803 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1d7704b28e1e6a635b11c3de6734ab2cf8657a02;p=openldap Fix tmp file removal. --- diff --git a/servers/slapd/Makefile.in b/servers/slapd/Makefile.in index 5b0c6ed0d4..c010e5395f 100644 --- a/servers/slapd/Makefile.in +++ b/servers/slapd/Makefile.in @@ -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 diff --git a/servers/slapd/back-ldbm/alias.c b/servers/slapd/back-ldbm/alias.c index f8feaebf0a..88edf68724 100644 --- a/servers/slapd/back-ldbm/alias.c +++ b/servers/slapd/back-ldbm/alias.c @@ -156,6 +156,7 @@ char *derefDN ( Backend *be, free (newDN); newDN = NULL; free (remainder); + remainder = NULL; break; /* no associated entry, dont deref */ } else {