From: Arkadiusz Miśkiewicz Date: Thu, 6 Aug 2009 12:16:50 +0000 (+0000) Subject: - rel 2; avoid hangs in stty X-Git-Tag: auto/th/coreutils-7_4-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcoreutils.git;a=commitdiff_plain;h=cdcff53114fb76b1fa5f236527598e7cdabd98d7 - rel 2; avoid hangs in stty Changed files: coreutils-7.4-sttytcsadrain.patch -> 1.1 coreutils.spec -> 1.150 --- diff --git a/coreutils-7.4-sttytcsadrain.patch b/coreutils-7.4-sttytcsadrain.patch new file mode 100644 index 0000000..af25979 --- /dev/null +++ b/coreutils-7.4-sttytcsadrain.patch @@ -0,0 +1,12 @@ +diff -urNp coreutils-7.4-orig/src/stty.c coreutils-7.4/src/stty.c +--- coreutils-7.4-orig/src/stty.c 2009-04-24 14:41:19.000000000 +0200 ++++ coreutils-7.4/src/stty.c 2009-06-11 10:15:41.000000000 +0200 +@@ -1001,7 +1001,7 @@ main (int argc, char **argv) + spurious difference in an uninitialized portion of the structure. */ + DECLARE_ZEROED_AGGREGATE (struct termios, new_mode); + +- if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode)) ++ if (tcsetattr (STDIN_FILENO, TCSANOW, &mode)) + error (EXIT_FAILURE, errno, "%s", device_name); + + /* POSIX (according to Zlotnick's book) tcsetattr returns zero if diff --git a/coreutils.spec b/coreutils.spec index 9cc8f26..92c114a 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -3,7 +3,7 @@ Summary: GNU Core-utils - basic command line utilities Summary(pl.UTF-8): GNU Core-utils - podstawowe narzędzia działające z linii poleceń Name: coreutils Version: 7.4 -Release: 1 +Release: 2 License: GPL v3+ Group: Applications/System Source0: http://ftp.gnu.org/gnu/coreutils/%{name}-%{version}.tar.xz @@ -25,7 +25,7 @@ Patch3: %{name}-su-paths.patch Patch4: %{name}-uname-cpuinfo.patch Patch5: %{name}-date-man.patch Patch6: %{name}-mem.patch - +Patch7: %{name}-7.4-sttytcsadrain.patch Patch9: %{name}-fmt-wchars.patch Patch10: %{name}-runuser.patch @@ -116,6 +116,7 @@ lzma -dc %{SOURCE0} | tar xf - -C .. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1