[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

aCaB acab at clamav.net
Sun Apr 4 01:27:18 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 48ce55cf8911d3cc7e401134fd32e7a79a5d3b45
Author: aCaB <acab at clamav.net>
Date:   Mon Mar 29 15:37:54 2010 +0200

    don't trim double trailing slashes on win32

diff --git a/libclamav/others_common.c b/libclamav/others_common.c
index 483613f..68a95e7 100644
--- a/libclamav/others_common.c
+++ b/libclamav/others_common.c
@@ -524,7 +524,9 @@ int cli_ftw(char *path, int flags, int maxdepth, cli_ftw_cb callback, struct cli
 	char *pathend;
 	/* trim slashes so that dir and dir/ behave the same when
 	 * they are symlinks, and we are not following symlinks */
+#ifndef _WIN32
 	while (path[0] == *PATHSEP && path[1] == *PATHSEP) path++;
+#endif
 	pathend = path + strlen(path);
 	while (pathend > path && pathend[-1] == *PATHSEP) --pathend;
 	*pathend = '\0';

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list