]> git.llucax.com Git - software/mutt-debian.git/commitdiff
upstream/528233-readonly-open.patch: open attachments in read-only (Closes: 528233)
authorAntonio Radici <antonio@dyne.org>
Sun, 7 Feb 2010 00:04:52 +0000 (00:04 +0000)
committerAntonio Radici <antonio@dyne.org>
Sun, 7 Feb 2010 00:04:52 +0000 (00:04 +0000)
debian/changelog
debian/patches/series
debian/patches/upstream/528233-readonly-open.patch [new file with mode: 0644]

index b18f42e18147a7f5860bfafa2e8a47bb2a14d108..a464d4c61565cee5bdc987b02fcfee5dd443f00b 100644 (file)
@@ -17,6 +17,8 @@ mutt (1.5.20-7) unstable; urgency=low
       In-Reply-To is not initially present (Closes: 568295)
     + upstream/547980-smime_keys-chaining.patch: support certificate chaining in
       smime_keys (Closes: 547980, 549006)
+    + upstream/528233-readonly-open.patch: open attachments in read-only 
+      (Closes: 528233)
     + debian-specific/Muttrc: set time_inc to be 250ms (Closes: 537746)
   * debian/control: 
     + bumping Standards-Version to 3.8.4, nothing to be done
index 3ecd15ae143d9594388f6800aa296abe8dcb9985..016361d12b5452f379cb1b93bffb84d1798e3259 100644 (file)
@@ -55,6 +55,7 @@ upstream/545316-header-color.patch
 upstream/568295-references.patch
 
 upstream/547980-smime_keys-chaining.patch
+upstream/528233-readonly-open.patch
 misc/hyphen-as-minus.patch
 #misc/manpage-typos.patch
 misc/smime_keys-manpage.patch
diff --git a/debian/patches/upstream/528233-readonly-open.patch b/debian/patches/upstream/528233-readonly-open.patch
new file mode 100644 (file)
index 0000000..df29fd9
--- /dev/null
@@ -0,0 +1,14 @@
+Open attachments as read-only so the editor won't be able to modify it;
+otherwise the user can believe that he/she can edit it and risk to lose his/her
+work (see upstream bug http://bugs.mutt.org/3261)
+
+--- a/attach.c
++++ b/attach.c
+@@ -494,6 +494,7 @@
+       goto return_error;
+     }
++    chmod (tempfile, 0400);
+     use_pipe = rfc1524_expand_command (a, tempfile, type,
+                                      command, sizeof (command));
+     use_pager = entry->copiousoutput;