[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:05:45 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit a7e259b52835a9e991bad0321bcd965f5a2d782c
Author: aCaB <acab at clamav.net>
Date:   Thu Sep 24 19:44:58 2009 +0200

    fix in cli_is_abspath

diff --git a/ChangeLog b/ChangeLog
index 5552f9a..dbfa56d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Sep 24 19:43:50 CEST 2009 (acab)
+------------------------------------
+ * libclamav/others_common.c: Accept "/" as an absolute path
+
 Thu Sep 24 19:22:24 CEST 2009 (acab)
 ------------------------------------
  * merge a set of win32 patches from Gianluigi Tiesi <sherpya*netfarm.it>
diff --git a/libclamav/others_common.c b/libclamav/others_common.c
index 33f0c1f..9ae25ca 100644
--- a/libclamav/others_common.c
+++ b/libclamav/others_common.c
@@ -916,7 +916,7 @@ int cli_is_abspath(const char *path) {
     int len = strlen(path);
     return (len > 2 && path[0] == '\\' && path[1] == '\\') || (len > 3 && path[1] == ':' && path[2] == '\\');
 #else
-    return strlen(path) > 1 && *path == '/';
+    return *path == '/';
 #endif
 }
 

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list