[Fedora-directory-commits] ldapserver/ldap/servers/slapd util.c, 1.15, 1.16

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Fri Nov 30 17:23:16 UTC 2007


Author: nhosoi

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23306

Modified Files:
	util.c 
Log Message:
Resolves: #316281
Summary: db2bak fails if the archive path exists and ends with '/' (Comment #8)
Description: Changed the condition to normalize the path: if '.' or '/' is
included in the path, normalize it.



Index: util.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/util.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- util.c	3 Oct 2007 00:55:35 -0000	1.15
+++ util.c	30 Nov 2007 17:23:13 -0000	1.16
@@ -529,8 +529,8 @@
         }
     }
     retpath = slapi_ch_strdup(abspath);
-    /* if there's no '.', no need to call normalize_path */
-    if (NULL != strchr(abspath, '.') || NULL != strstr(abspath, _PSEP2))
+    /* if there's no '.' or separators, no need to call normalize_path */
+    if (NULL != strchr(abspath, '.') || NULL != strstr(abspath, _PSEP))
     {
         char **norm_path = normalize_path(abspath);
         char **np, *rp;




More information about the Fedora-directory-commits mailing list