You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. From: Antonio Radici <antonio@debian.org>
  2. Date: Thu, 27 Feb 2014 16:45:38 +0100
  3. Subject: 542817-smimekeys-tmpdir
  4. Skip the configured tmpdir if it contains '=',
  5. that convention is used only by Mutt.
  6. (see upstream http://bugs.mutt.org/3324)
  7. Gbp-Pq: Topic upstream
  8. ---
  9. smime_keys.pl | 1 +
  10. 1 file changed, 1 insertion(+)
  11. diff --git a/smime_keys.pl b/smime_keys.pl
  12. index a825358..2f4544a 100755
  13. --- a/smime_keys.pl
  14. +++ b/smime_keys.pl
  15. @@ -946,6 +946,7 @@ sub newfile ($;$$) {
  16. $option = "notemp" if (not defined($option));
  17. if (! $tmpdir and $option eq "temp") {
  18. $tmpdir = mutt_Q 'tmpdir';
  19. + $tmpdir = '/tmp' if ($tmpdir =~ m/=/); # if the tmpdir contains '=', use the default
  20. $tmpdir = newfile("$tmpdir/smime");
  21. mkdir $tmpdir, 0700 || die "Can't create $tmpdir: $!\n";
  22. }