Bug 424311 - smime_keys perl script should glob tilde
Summary: smime_keys perl script should glob tilde
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mutt
Version: 8
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-13 21:27 UTC by Fabrice Bellet
Modified: 2008-06-25 09:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-25 09:53:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fabrice Bellet 2007-12-13 21:27:05 UTC
smime_keys calls 'mutt -Q' to obtain smime related paths. The problem is that
mutt returns paths containing '~' for the home directory. So the smime_keys
script should certainly glob() the answer before returning it :

--- /usr/bin/smime_keys 2007-11-23 13:02:04.000000000 +0100
+++ /home/bellet/bin/smime_keys 2007-12-13 21:51:59.000000000 +0100
@@ -20,6 +20,7 @@
 
 use strict;
 use File::Copy;
+use File::Glob ':glob';
 
 umask 077;
 
@@ -225,7 +226,7 @@
 EOF
 #'
 
-    $answer =~ /\"(.*?)\"/ and return $1;
+    $answer =~ /\"(.*?)\"/ and return bsd_glob($1, GLOB_TILDE);
     
     $answer =~ /^Mutt (.*?) / and die<<EOF;
 This script requires mutt 1.5.0 or later. You are using mutt $1.

Comment 1 Miroslav Lichvar 2008-01-25 13:07:34 UTC
Reported upstream at http://dev.mutt.org/trac/ticket/3020.

Comment 2 Fedora Update System 2008-05-19 11:20:10 UTC
mutt-1.5.18-1.fc8 has been submitted as an update for Fedora 8

Comment 3 Fedora Update System 2008-05-21 11:09:35 UTC
mutt-1.5.18-1.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mutt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-4297


Note You need to log in before you can comment on or make changes to this bug.