From 6e0cd7b3aec391b9acd16011500a03d9924f334f Mon Sep 17 00:00:00 2001 From: Antonio Radici Date: Sun, 7 Feb 2010 00:04:52 +0000 Subject: [PATCH] upstream/528233-readonly-open.patch: open attachments in read-only (Closes: 528233) --- debian/changelog | 2 ++ debian/patches/series | 1 + debian/patches/upstream/528233-readonly-open.patch | 14 ++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 debian/patches/upstream/528233-readonly-open.patch diff --git a/debian/changelog b/debian/changelog index b18f42e..a464d4c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/debian/patches/series b/debian/patches/series index 3ecd15a..016361d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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 index 0000000..df29fd9 --- /dev/null +++ b/debian/patches/upstream/528233-readonly-open.patch @@ -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; -- 2.43.0