[pluma] 11/13: debian/patches: Drop 0000_prevent_shell_code_injection.patch. Applied upstream.

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Fri May 6 13:56:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

flexiondotorg-guest pushed a commit to branch master
in repository pluma.

commit 6c115d9f4670a556486aaa5193888b55a9c193e3
Author: Martin Wimpress <code at flexion.org>
Date:   Fri May 6 14:22:23 2016 +0100

    debian/patches: Drop 0000_prevent_shell_code_injection.patch. Applied upstream.
---
 .../0000_prevent_shell_code_injection.patch        | 42 ----------------------
 debian/patches/series                              |  1 -
 2 files changed, 43 deletions(-)

diff --git a/debian/patches/0000_prevent_shell_code_injection.patch b/debian/patches/0000_prevent_shell_code_injection.patch
deleted file mode 100644
index 859a3b0..0000000
--- a/debian/patches/0000_prevent_shell_code_injection.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Descrption: Fix switch-c tool and avoid shell command injection
-Author: Martin Wimpress <code at flexion.org>
-
-diff --git a/plugins/externaltools/data/switch-c.tool.in b/plugins/externaltools/data/switch-c.tool.in
-index 640c4f0..9d3a01c 100755
---- a/plugins/externaltools/data/switch-c.tool.in
-+++ b/plugins/externaltools/data/switch-c.tool.in
-@@ -1,5 +1,7 @@
- #!/usr/bin/python
-+# -*- coding: utf-8 -*-
- # Copyright © 2011 Perberos
-+# Copyright © 2012-2016 MATE developers
- #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Lesser General Public License as published by the
-@@ -16,10 +18,21 @@
- # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- 
- import os
-+import subprocess
- 
--name = os.environ["PLUMA_CURRENT_DOCUMENT_NAME"]
-+try:
-+    name = os.environ["PLUMA_CURRENT_DOCUMENT_NAME"]
-+except KeyError:
-+    exit(1)
- 
--if name.endswith('.c'):
--	os.system("pluma %s.h" % ".".join(name.split('.')[:-1]))
--if name.endswith('.h'):
--	os.system("pluma %s.c" % ".".join(name.split('.')[:-1]))
-+f, ext = os.path.splitext(name)
-+nxt = ''
-+
-+if ext == '.c':
-+    nxt = '.h'
-+
-+if ext == '.h':
-+    nxt = '.c'
-+
-+if nxt:
-+    subprocess.call(['/usr/bin/pluma', f+nxt])
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index e1cc2d5..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-0000_prevent_shell_code_injection.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/pluma.git



More information about the pkg-mate-commits mailing list