[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: konsole patch for newest FreeBSD
From: Adriaan de Groot <adridg () cs ! kun ! nl>
Date: 2003-08-24 19:19:03
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This patch makes konsole from 3.1 work in -CURRENT -- line numbers may be off
because I've patched konsole for other bugs as well. [Committed already ...]
Now I'd like to fix this in HEAD as well, but have no idea where the pty and
login stuff has moved in HEAD. Where?
- --
pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot@kde.org>
Key fingerprint = 934E 31AA 80A7 723F 54F9 50ED 76AC EE01 FEA2 A3FE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)
iD8DBQE/SQ+0dqzuAf6io/4RAjPhAKCC00p2LsBsZiCJ2Q/sBjJwV2H67ACeLyRx
FPvPnP6XzIDOi147JEl0uXs=
=AKLJ
-----END PGP SIGNATURE-----
["konsole.diff" (text/x-diff)]
--- konsole/TEPty.cpp.orig Sun Aug 24 20:39:42 2003
+++ konsole/TEPty.cpp Sun Aug 24 21:11:53 2003
@@ -563,7 +563,15 @@
strncpy(l_struct.ut_name, str_ptr, UT_NAMESIZE);
if (gethostname(l_struct.ut_host, UT_HOSTSIZE) == -1) {
- if (errno != ENOMEM)
+#ifdef Q_OS_FREEBSD
+ /* FreeBSD until august 22, 2003 returned ENOMEM for too-long
+ ** hostnames. Then sanity prevailed (?) and the error was changed
+ ** to NAMETOOLONG, but this breaks konsole .. again.
+ */
+ if (!((errno == ENOMEM) || (errno == ENAMETOOLONG)))
+#else
+ if (errno != ENOMEM)
+#endif
abort();
l_struct.ut_host[UT_HOSTSIZE]=0;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic