OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[trivial patch] proxy_read_maps fix

From: Leandro Santi (lesantiuolsinectis.com.ar)
Date: Tue Apr 29 2003 - 16:01:00 CDT


Hi!

I think the proxymap daemon isn't considering comma characters as item
separator while parsing the proxy_read_maps directive.

This is problematic for me because I have multiple, comma separated,
$transport_maps entries that won't be correctly processed while parsing
$proxy_read_maps (ie the comma character will be incorrectly interpreted
as part of an item, or as an item itself).

diff -ur postfix-2.0.9/src/proxymap/proxymap.c postfix-2.0.9.patched/src/proxymap/proxymap.c
--- postfix-2.0.9/src/proxymap/proxymap.c Sat Mar 8 17:44:17 2003
+++ postfix-2.0.9.patched/src/proxymap/proxymap.c Tue Apr 29 17:37:14 2003@@ -350,7 +350,7 @@
 
 static void post_jail_init(char *unused_name, char **unused_argv)
 {
- const char *sep = " \t\r\n";
+ const char *sep = " \t\r\n,";
     char *saved_filter;
     char *bp;
     char *type_name;

Regards,
Leandro