1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add patch to fix konsole crashes. Has been submitted to the KDE team.

PR:		22555
Submitted by:	nsayer
This commit is contained in:
Will Andrews 2000-11-02 22:54:02 +00:00
parent 9ea7b64e0f
commit a5f9327eda
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34686
8 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif

View File

@ -0,0 +1,11 @@
--- konsole/src/TEPty.C Tue Oct 3 14:57:30 2000
+++ konsole/src/TEPty.C.new Thu Nov 2 17:51:30 2000
@@ -225,7 +225,7 @@
#ifdef HAVE_UTEMPTER
removeLineFromUtmp(ttynam, fd);
#elif defined(USE_LOGIN)
- char *tty_name=ttyname(0);
+ char *tty_name=ttyname(fd);
if (tty_name)
logout(tty_name);
#endif