From c1a140cb2950473a8991f0a736596e9c98560d65 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 1 Oct 2012 11:29:38 +0200 Subject: glibc 2.16 gets() updates --- package/coreutils/patches/patch-lib_config_hin | 40 ++++++++++++++++++++++++++ package/coreutils/patches/patch-lib_stdio_in_h | 10 +++++++ 2 files changed, 50 insertions(+) create mode 100644 package/coreutils/patches/patch-lib_config_hin create mode 100644 package/coreutils/patches/patch-lib_stdio_in_h (limited to 'package/coreutils/patches') diff --git a/package/coreutils/patches/patch-lib_config_hin b/package/coreutils/patches/patch-lib_config_hin new file mode 100644 index 000000000..ea116f8cd --- /dev/null +++ b/package/coreutils/patches/patch-lib_config_hin @@ -0,0 +1,40 @@ +--- coreutils-8.15.orig/lib/config.hin 2012-01-06 16:51:29.000000000 +0100 ++++ coreutils-8.15/lib/config.hin 2012-09-29 09:50:30.000000000 +0200 +@@ -41,12 +41,12 @@ + /* Define to 1 if chown mishandles trailing slash. */ + #undef CHOWN_TRAILING_SLASH_BUG + +-/* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP +- systems. This function is required for 'alloca.c' support on those systems. ++/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP ++ systems. This function is required for `alloca.c' support on those systems. + */ + #undef CRAY_STACKSEG_END + +-/* Define to 1 if using 'alloca.c'. */ ++/* Define to 1 if using `alloca.c'. */ + #undef C_ALLOCA + + /* Define as the bit index in the word where to find bit 0 of the exponent of +@@ -3509,9 +3509,9 @@ + /* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at runtime. +- STACK_DIRECTION > 0 => grows toward higher addresses +- STACK_DIRECTION < 0 => grows toward lower addresses +- STACK_DIRECTION = 0 => direction of growth unknown */ ++ STACK_DIRECTION > 0 => grows toward higher addresses ++ STACK_DIRECTION < 0 => grows toward lower addresses ++ STACK_DIRECTION = 0 => direction of growth unknown */ + #undef STACK_DIRECTION + + /* Define if the block counts reported by statfs may be truncated to 2GB and +@@ -3668,7 +3668,7 @@ + # endif + #endif + +-/* Enable large inode numbers on Mac OS X. */ ++/* Enable large inode numbers on Mac OS X 10.5. */ + #ifndef _DARWIN_USE_64_BIT_INODE + # define _DARWIN_USE_64_BIT_INODE 1 + #endif diff --git a/package/coreutils/patches/patch-lib_stdio_in_h b/package/coreutils/patches/patch-lib_stdio_in_h new file mode 100644 index 000000000..cd40ccb9f --- /dev/null +++ b/package/coreutils/patches/patch-lib_stdio_in_h @@ -0,0 +1,10 @@ +--- coreutils-8.15.orig/lib/stdio.in.h 2012-01-06 08:22:03.000000000 +0100 ++++ coreutils-8.15/lib/stdio.in.h 2012-09-29 15:31:11.000000000 +0200 +@@ -715,7 +715,6 @@ _GL_CXXALIASWARN (gets); + /* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + #endif + + -- cgit v1.2.3