Permalink
Browse files

Fix memset typo in hpcfs_directory (thx external user!)

  • Loading branch information...
1 parent d43ea00 commit 5d4ffbea7130ca91c24ea6956f0faeda79ea27e4 @pyke369 pyke369 committed Jan 14, 2010
Showing with 12 additions and 8 deletions.
  1. +6 −0 debian/changelog
  2. +4 −6 debian/hpcfs.conf.sample
  3. +2 −2 hpcfs.c
View
@@ -1,3 +1,9 @@
+hpcfs (1.0.2) stable; urgency=low
+
+ * Fix memset typo in hpcfs_directory (thx external user!)
+
+ -- Pierre-Yves Kerembellec <pyke@dailymotion.com> Thu, 14 Jan 2009 11:48:25 +0100
+
hpcfs (1.0.1) stable; urgency=low
* Fix typo in hpcfs_substitute, leading to substitution random behaviour
View
@@ -1,14 +1,12 @@
# Sample configuration file for HPCFS
-HostMap storage "10.4.14.$[1-24] 10.195.15.$[1-12] 10.4.16.$[1-12] 10.195.17.$[1-11] 10.4.18.$[1-11]"
-Rewrite ^/(video/\d{3}/\d{3}/\d+:[a-z0-9_]+)(?::\d+)?(\.[a-z0-9]+)$ http://${storage}/$1$2
-Rewrite ^/\d+/((?:[a-z0-9]+/[a-z0-9_]+)|source|[a-z0-9_]+)/(\d+)(?:-\d+)?(\.[a-z0-9]+)$ http://${storage}/dailymotion/$1/$2$3
+HostMap storage "1.2.3.$[1-10] 10.0.1.1 192.168.0.1"
+Rewrite ^/(.+)$ http://${storage}/$1
ConnectTimeout 5
MapTimeout 5
ReceiveTimeout 30
MaxDepth 8
-CacheRoot /data/cache/disk_1
-
-Log /data/proxy-cleaner/logs/proxy-%j-%H%M.log
+CacheRoot /var/lib/hpcfs/cache
+Log /var/logs/hpcfs/%j-%H%M.log
View
@@ -24,7 +24,7 @@
// Defines and directives
#pragma pack(1)
-#define MODULE_VERSION "1.0.0"
+#define MODULE_VERSION "1.0.2"
#define MAXIMUM_REWRITES (32)
#define MAXIMUM_HOSTMAPS (32)
@@ -173,7 +173,7 @@ static int hpcfs_directory(const char *path)
{
return 0;
}
- memset(prefix, sizeof(prefix), 0);
+ memset(prefix, 0, sizeof(prefix));
while (1)
{
strncpy(prefix, path, sizeof(prefix) - 1);

0 comments on commit 5d4ffbe

Please sign in to comment.