David & Team,

Apparently, the --dbdir option to postgrey does not work currently (seems 
everybody is happy with the default directory...) due to the '-T' option to 
perl.

Please see the report in Debian's bug database: 
<http://bugs.debian.org/309499>

Sven M�ller who reported the bug also provided a patch:
===
diff -ur postgrey-1.21.orig/postgrey postgrey-1.21/postgrey
--- postgrey-1.21.orig/postgrey 2005-05-17 18:47:20.000000000 +0200
+++ postgrey-1.21/postgrey      2005-05-17 18:59:05.000000000 +0200
@@ -406,6 +406,15 @@
         }
     }
 
+    # if dbdir is used, make sure it 
+    if ( $opt{dbdir} ) {
+        if ( $opt{dbdir} =~ m,^([a-zA-Z0-9_/]+)$, ) {
+            $opt{dbdir} = $1
+        } else {
+            die "dbdir contains unwanted characters. Allowed characters: 
a-z,A-Z,0-9,_,/\n"
+        }
+    }
+
     # create Net::Server object and run it
     my $server = bless {
         server => {
===
(NOTE: I think the regex should be more permissive and allow all legal file
names, silly as they may seem now.)

I didn't verify, assuming a bug reporter who is able to patch to fix the bug 
is not just filing bogus bug reports...

Please keep [EMAIL PROTECTED] in the loop for replies.

greetings
-- vbi

Attachment: pgpq2nhmByVrS.pgp
Description: PGP signature

Reply via email to