From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch (limited to 'app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch') diff --git a/app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch b/app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch new file mode 100644 index 000000000000..65c06e3f1ddf --- /dev/null +++ b/app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch @@ -0,0 +1,20 @@ +This is a combination of upstream's fe2d8334 and 03abad. See +https://bugs.gentoo.org/show_bug.cgi?id=574610. + +diff -Naur fdupes-1.51.orig/fdupes.c fdupes-1.51/fdupes.c +--- fdupes-1.51.orig/fdupes.c 2013-04-20 14:02:18.000000000 -0400 ++++ fdupes-1.51/fdupes.c 2016-02-29 02:45:36.360804360 -0500 +@@ -1164,7 +1164,12 @@ + } + else + { +- stdin = freopen("/dev/tty", "r", stdin); ++ if (freopen("/dev/tty", "r", stdin) == 0) ++ { ++ errormsg("could not open terminal for input\n"); ++ exit(1); ++ } ++ + deletefiles(files, 1, stdin); + } + } -- cgit v1.2.3