Hello community, here is the log from the commit of package mingetty checked in at Wed Apr 23 01:43:03 CEST 2008. -------- --- mingetty/mingetty.changes 2007-05-29 17:26:14.000000000 +0200 +++ /mounts/work_src_done/STABLE/mingetty/mingetty.changes 2008-04-22 17:22:36.711872000 +0200 @@ -1,0 +2,5 @@ +Tue Apr 22 17:21:49 CEST 2008 - werner@suse.de + +- Fix possible SIGSEGV in mingetty sigfholder() (bnc#382052) + +------------------------------------------------------------------- New: ---- mingetty-1.0.7s.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mingetty.spec ++++++ --- /var/tmp/diff_new_pack.Us9423/_old 2008-04-23 01:42:44.000000000 +0200 +++ /var/tmp/diff_new_pack.Us9423/_new 2008-04-23 01:42:44.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package mingetty (Version 1.0.7s) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -10,21 +10,22 @@ # norootforbuild + Name: mingetty -License: GNU General Public License (GPL) +License: GPL v2 or later Group: System/Base -Autoreqprov: on +AutoReqProv: on Version: 1.0.7s -Release: 1 +Release: 55 Summary: Minimal Getty for Virtual Consoles Only Provides: sysvinit:/sbin/mingetty BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: mingetty-1.0.7s.tar.bz2 -#Patch: mingetty-1.0.7s.dif +Patch: mingetty-1.0.7s.dif %description -The mingetty program is a lightweight, minimalist getty program for use -only on virtual consoles. Mingetty is not suitable for serial lines +The mingetty program is a lightweight, minimalistic getty program for +use on virtual consoles only. Mingetty is not suitable for serial lines (you should use the mgetty program for this purpose). @@ -37,7 +38,7 @@ %prep %setup -q -#%patch +%patch %build %ifarch s390 s390x @@ -57,50 +58,52 @@ %doc %{_mandir}/man8/mingetty.8.gz %changelog -* Tue May 29 2007 - werner@suse.de +* Tue Apr 22 2008 werner@suse.de +- Fix possible SIGSEGV in mingetty sigfholder() (bnc#382052) +* Tue May 29 2007 werner@suse.de - Adopt autologin and other new feature of the other mingetty at sourceforge. -* Wed May 24 2006 - schwab@suse.de +* Wed May 24 2006 schwab@suse.de - Don't strip binaries. -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Tue Mar 30 2004 - werner@suse.de +* Tue Mar 30 2004 werner@suse.de - Remove kernel include hopefully glibc does this jobs for now and in future. -* Tue Mar 30 2004 - werner@suse.de +* Tue Mar 30 2004 werner@suse.de - More about UTF-8: enable the kernel to erease UTF-8 multi byte characters (bug #37367) - Therefore add workaround if glibc bits/termios.h is missing the IUTF8 input flag. -* Fri Mar 26 2004 - werner@suse.de +* Fri Mar 26 2004 werner@suse.de - Not all architectures do provide KDGKBMODE ioctl (s390/s390x) -* Wed Feb 18 2004 - werner@suse.de +* Wed Feb 18 2004 werner@suse.de - Add UTF-8 support for login name if and only if current console is in utf-8 mode (fix bug #34520) -* Sat Oct 18 2003 - kukuk@suse.de +* Sat Oct 18 2003 kukuk@suse.de - Move mingetty in extra package - Build as normal user -* Thu Jun 05 2003 - mfabian@suse.de +* Thu Jun 05 2003 mfabian@suse.de - if the option "--noclear" is not set, don't write a full reset because this leaves the unicode mode again if the terminal was in unicode mode and it also undos the ESC sequences in CONSOLE_MAGIC which are needed for some languages/console-fonts. Just put the cursor the home position (ESC [ H) and erase everything below the cursor (ESC [ J). -* Thu Nov 14 2002 - werner@suse.de +* Thu Nov 14 2002 werner@suse.de - Update to mingetty 0.9.6s * Be sure to get controlling tty * Avoid overruns in string handling -* Wed Nov 13 2002 - werner@suse.de +* Wed Nov 13 2002 werner@suse.de - Update to mingetty 0.9.5s (s stand for SuSE) * New old option for avoiding vcs/vcsa hangup, terminal reset, and the usage of the glibc for updating wtmp. * Now the default terminal type can be set at compile time as an make option. -* Thu Apr 25 2002 - werner@suse.de +* Thu Apr 25 2002 werner@suse.de - changes on mingetty (new version 0.9.4c) * Add support for other TTY devices than virtual console * Add nohost patch from Anders ?? -* Mon Apr 19 1999 - werner@suse.de +* Mon Apr 19 1999 werner@suse.de - mingetty: reset not only /dev/tty<line> but /dev/vcs<line> and /dev/vcsa<line> also ++++++ mingetty-1.0.7s.dif ++++++ --- revoke.c +++ revoke.c 2008-04-22 17:20:00.687822254 +0200 @@ -261,14 +261,14 @@ static int sigfholder(const char *path, continue; } while ((fgets(buf, MAXNAMLEN, fp))) { - ptr = strrchr(buf, ' '); - if (*(++ptr) == '/' && strncmp(path, ptr, strlen(ptr)-1) == 0) { + if ((ptr = strchr(buf, '/')) == (char*)0) + continue; + if (strncmp(path, ptr, strlen(ptr)-1) == 0) { kill(pid, sig); cnt++; - goto out_maps; + break; } } - out_maps: fclose(fp); (void) strcpy(buf,"/proc/"); @@ -290,10 +290,9 @@ static int sigfholder(const char *path, if (st.st_dev == lnk.st_dev && st.st_ino == lnk.st_ino) { kill(pid, sig); cnt++; - goto out_fds; + break; } } - out_fds: closedir(fds); } closedir(proc); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org