You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2006/08/05 05:06:14 UTC

svn commit: r428946 - /spamassassin/trunk/sa-update.raw

Author: felicity
Date: Fri Aug  4 20:06:14 2006
New Revision: 428946

URL: http://svn.apache.org/viewvc?rev=428946&view=rev
Log:
bug 5030: if the gpg executable is in a path with a space, quote the path

Modified:
    spamassassin/trunk/sa-update.raw

Modified: spamassassin/trunk/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-update.raw?rev=428946&r1=428945&r2=428946&view=diff
==============================================================================
--- spamassassin/trunk/sa-update.raw (original)
+++ spamassassin/trunk/sa-update.raw Fri Aug  4 20:06:14 2006
@@ -279,6 +279,13 @@
 
   if ($GPGPath = Mail::SpamAssassin::Util::find_executable_in_env_path($GPGPath)) {
     dbg("gpg: found $GPGPath");
+
+    # bug 5030: if GPGPath has a space, put it in quotes
+    if ($GPGPath =~ / /) {
+      $GPGPath =~ s/"/\\"/g;
+      $GPGPath = qq/"$GPGPath"/;
+      dbg("gpg: path changed to $GPGPath");
+    }
   }
   else {
     die "error: gpg required but not found!\n";