]> TLD Linux GIT Repositories - packages/coreutils.git/commitdiff
- missing patches
authorMarcin Krol <hawk@tld-linux.org>
Thu, 11 Apr 2013 20:59:24 +0000 (20:59 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 11 Apr 2013 20:59:24 +0000 (20:59 +0000)
format-security.patch [new file with mode: 0644]
inotify.patch [new file with mode: 0644]

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..676a203
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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);
diff --git a/inotify.patch b/inotify.patch
new file mode 100644 (file)
index 0000000..51bb49a
--- /dev/null
@@ -0,0 +1,22 @@
+--- coreutils-8.10/m4/jm-macros.m4     2011-10-12 09:57:39.122777938 +0300
++++ coreutils-8.10/m4/jm-macros.m4     2011-10-12 10:33:51.986782716 +0300
+@@ -67,9 +67,16 @@
+   AC_CHECK_FUNCS_ONCE([nl_langinfo])
+   # Used by tail.c.
+-  AC_CHECK_FUNCS([inotify_init],
+-    [AC_DEFINE([HAVE_INOTIFY], [1],
+-     [Define to 1 if you have usable inotify support.])])
++  AC_RUN_IFELSE(
++    AC_LANG_PROGRAM([[#include <sys/inotify.h>]],
++                    [[return (-1 == inotify_init());]]
++    ),
++    [
++      AC_MSG_RESULT([yes])
++      AC_DEFINE([HAVE_INOTIFY], [1],
++       [Define to 1 if you have usable inotify support.])
++    ], [AC_MSG_RESULT([no])]
++  )
+   AC_CHECK_FUNCS_ONCE( \
+     endgrent \