Mailing List Archive

svn commit: r433046 - /spamassassin/branches/3.1/sa-update.raw
Author: felicity
Date: Sun Aug 20 14:11:27 2006
New Revision: 433046

URL: http://svn.apache.org/viewvc?rev=433046&view=rev
Log:
bug 5030: sa-update couldn't run GPG if the path to the binary had a space in it

Modified:
spamassassin/branches/3.1/sa-update.raw

Modified: spamassassin/branches/3.1/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/sa-update.raw?rev=433046&r1=433045&r2=433046&view=diff
==============================================================================
--- spamassassin/branches/3.1/sa-update.raw (original)
+++ spamassassin/branches/3.1/sa-update.raw Sun Aug 20 14:11:27 2006
@@ -281,6 +281,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";