commit util-linux for openSUSE:Factory
Hello community, here is the log from the commit of package util-linux for openSUSE:Factory checked in at 2012-09-26 16:28:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/util-linux (Old) and /work/SRC/openSUSE:Factory/.util-linux.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "util-linux", Maintainer is "PUzel@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/util-linux/util-linux.changes 2012-06-25 14:59:07.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.util-linux.new/util-linux.changes 2012-09-26 16:28:08.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Sep 19 19:41:10 UTC 2012 - jslaby@suse.com + +- login: close tty before vhangup (bnc#778842) + login-close-tty-before-vhangup.patch + +------------------------------------------------------------------- New: ---- login-close-tty-before-vhangup.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ util-linux.spec ++++++ --- /var/tmp/diff_new_pack.gAY674/_old 2012-09-26 16:28:09.000000000 +0200 +++ /var/tmp/diff_new_pack.gAY674/_new 2012-09-26 16:28:09.000000000 +0200 @@ -102,6 +102,8 @@ Patch11: util-linux-2.21.2-noenc.diff Patch12: util-linux-2.21.2-noenc-suse.diff +Patch13: login-close-tty-before-vhangup.patch + # hack for boot.localfs Patch20: util-linux-HACK-boot.localfs.diff ##### @@ -216,6 +218,7 @@ %patch10 -p1 %patch11 -p1 %patch12 -p1 +%patch13 -p1 # %patch20 -p1 ++++++ login-close-tty-before-vhangup.patch ++++++
From 2e7035646eb85851171cc2e989bfa858a4f00cd4 Mon Sep 17 00:00:00 2001 From: Karel Zak <kzak@redhat.com> Date: Thu, 12 Jul 2012 16:33:52 +0200 Subject: login: close tty before vhangup() Git-commit: 2e7035646eb85851171cc2e989bfa858a4f00cd4 Patch-mainline: v2.22-rc1 References: bnc#778842
Let's close all tty file descriptors before vhangup() call. References: https://lkml.org/lkml/2012/6/5/145 Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> --- login-utils/login.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/login-utils/login.c b/login-utils/login.c index fe13d8d..c0cc00a 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -409,6 +409,14 @@ static void init_tty(struct login_context *cxt) /* Kill processes left on this tty */ tcsetattr(0, TCSAFLUSH, &ttt); + /* + * Let's close file decriptors before vhangup + * https://lkml.org/lkml/2012/6/5/145 + */ + close(STDIN_FILENO); + close(STDOUT_FILENO); + close(STDERR_FILENO); + signal(SIGHUP, SIG_IGN); /* so vhangup() wont kill us */ vhangup(); signal(SIGHUP, SIG_DFL); -- 1.7.12 -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de