Patch8: %{name}-pl.po-update.patch
# from http://www.beatex.org/web/advancedcopy.html, edited by shadzik
Patch9: %{name}-advcopy.patch
+Patch10: format-security.patch
URL: http://www.gnu.org/software/coreutils/
BuildRequires: acl-devel
BuildRequires: attr-devel
# progress-bar patch, -g,--progress-bar //if in doubt, comment it out
%patch9 -p1
%endif
+%patch10 -p1
%{__perl} -pi -e 's@GNU/Linux@PLD Linux@' m4/host-os.m4
--- /dev/null
+--- coreutils-8.20/gnulib-tests/test-xvasprintf.c~ 2012-10-23 16:17:25.000000000 +0200
++++ coreutils-8.20/gnulib-tests/test-xvasprintf.c 2012-12-17 23:51:09.622359300 +0100
+@@ -95,7 +95,7 @@
+ {
+ /* Silence gcc warning about zero-length format string. */
+ const char *empty = "";
+- result = xasprintf (empty);
++ result = xasprintf ("%s",empty);
+ ASSERT (result != NULL);
+ ASSERT (strcmp (result, "") == 0);
+ free (result);