1 |
commit: e250c2ce3904a745b81fe5835aff8f481740caeb |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 21 08:27:01 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 21 08:27:09 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e250c2ce |
7 |
|
8 |
app-editors/nedit: Fix for format-security |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
app-editors/nedit/files/nedit-5.6-format.patch | 12 ++++++++++++ |
14 |
app-editors/nedit/metadata.xml | 6 +++--- |
15 |
app-editors/nedit/nedit-5.6.ebuild | 1 + |
16 |
3 files changed, 16 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/app-editors/nedit/files/nedit-5.6-format.patch b/app-editors/nedit/files/nedit-5.6-format.patch |
19 |
new file mode 100644 |
20 |
index 0000000..e2d6e17 |
21 |
--- /dev/null |
22 |
+++ b/app-editors/nedit/files/nedit-5.6-format.patch |
23 |
@@ -0,0 +1,12 @@ |
24 |
+diff -up nedit-5.6/source/nc.c.format nedit-5.6/source/nc.c |
25 |
+--- nedit-5.6/source/nc.c.format 2014-12-28 13:56:20.000000000 +0000 |
26 |
++++ nedit-5.6/source/nc.c 2015-06-17 07:30:25.617032345 +0100 |
27 |
+@@ -503,7 +503,7 @@ static int startServer(const char *messa |
28 |
+ |
29 |
+ /* prompt user whether to start server */ |
30 |
+ if (!Preferences.autoStart) { |
31 |
+- printf(message); |
32 |
++ printf("%s", message); |
33 |
+ do { |
34 |
+ c = getc(stdin); |
35 |
+ } while (c == ' ' || c == '\t'); |
36 |
|
37 |
diff --git a/app-editors/nedit/metadata.xml b/app-editors/nedit/metadata.xml |
38 |
index b71a05c..843f88b 100644 |
39 |
--- a/app-editors/nedit/metadata.xml |
40 |
+++ b/app-editors/nedit/metadata.xml |
41 |
@@ -1,7 +1,7 @@ |
42 |
<?xml version="1.0" encoding="UTF-8"?> |
43 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
44 |
<pkgmetadata> |
45 |
-<maintainer> |
46 |
-<email>amynka@g.o</email> |
47 |
-</maintainer> |
48 |
+ <maintainer> |
49 |
+ <email>amynka@g.o</email> |
50 |
+ </maintainer> |
51 |
</pkgmetadata> |
52 |
|
53 |
diff --git a/app-editors/nedit/nedit-5.6.ebuild b/app-editors/nedit/nedit-5.6.ebuild |
54 |
index 3c2f414..ac94482 100644 |
55 |
--- a/app-editors/nedit/nedit-5.6.ebuild |
56 |
+++ b/app-editors/nedit/nedit-5.6.ebuild |
57 |
@@ -28,6 +28,7 @@ S="${WORKDIR}/${PN}-5.6" |
58 |
src_prepare() { |
59 |
#respecting LDFLAGS, bug #208189 |
60 |
epatch \ |
61 |
+ "${FILESDIR}"/${P}-format.patch \ |
62 |
"${FILESDIR}"/${P}-ldflags.patch \ |
63 |
"${FILESDIR}"/${P}-40_Pointer_to_Integer.patch |
64 |
sed \ |