--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: kdeinit: bogus "couldn't open tty" error
- From: Robert Millan <rmh@aybabtu.com>
- Date: Fri, 21 Oct 2005 10:30:35 +0200
- Message-id: <E1ESsIN-0000PZ-U6@khazad.dyndns.org>
Package: kdelibs-bin
Severity: normal
Tags: patch
While debugging an unrelated problem, I found this:
kdeinit: couldn't open() tty: Permission denied
This error message is not very useful. If it told you which terminal is that
which can't be opened, then it'd actualy help debugging the problem. (of
course, I can use ktrace, but that's beside the point).
Patch attached.
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
kdeinit: couldn't open() tty: Permission denied
diff -ur kdelibs-3.4.2.old/kinit/kinit.cpp kdelibs-3.4.2/kinit/kinit.cpp
--- kdelibs-3.4.2.old/kinit/kinit.cpp 2005-07-20 11:19:21.000000000 +0200
+++ kdelibs-3.4.2/kinit/kinit.cpp 2005-10-21 10:19:45.000000000 +0200
@@ -255,7 +255,7 @@
int fd = open( tty, O_WRONLY );
if( fd < 0 )
{
- perror( "kdeinit: couldn't open() tty" );
+ fprintf( "kdeinit: couldn't open() %s: %s\n", tty, strerror (errno) );
return;
}
if( dup2( fd, STDOUT_FILENO ) < 0 )
--- End Message ---
--- Begin Message ---
Source: kdelibs
Source-Version: 4:3.5.7.dfsg.1-2
We believe that the bug you reported is fixed in the latest version of
kdelibs, which is due to be installed in the Debian FTP archive:
kdelibs-data_3.5.7.dfsg.1-2_all.deb
to pool/main/k/kdelibs/kdelibs-data_3.5.7.dfsg.1-2_all.deb
kdelibs-dbg_3.5.7.dfsg.1-2_i386.deb
to pool/main/k/kdelibs/kdelibs-dbg_3.5.7.dfsg.1-2_i386.deb
kdelibs4-dev_3.5.7.dfsg.1-2_i386.deb
to pool/main/k/kdelibs/kdelibs4-dev_3.5.7.dfsg.1-2_i386.deb
kdelibs4-doc_3.5.7.dfsg.1-2_all.deb
to pool/main/k/kdelibs/kdelibs4-doc_3.5.7.dfsg.1-2_all.deb
kdelibs4c2a_3.5.7.dfsg.1-2_i386.deb
to pool/main/k/kdelibs/kdelibs4c2a_3.5.7.dfsg.1-2_i386.deb
kdelibs_3.5.7.dfsg.1-2.diff.gz
to pool/main/k/kdelibs/kdelibs_3.5.7.dfsg.1-2.diff.gz
kdelibs_3.5.7.dfsg.1-2.dsc
to pool/main/k/kdelibs/kdelibs_3.5.7.dfsg.1-2.dsc
kdelibs_3.5.7.dfsg.1-2_all.deb
to pool/main/k/kdelibs/kdelibs_3.5.7.dfsg.1-2_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 334974@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> (supplier of updated kdelibs package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Thu, 19 Jul 2007 22:52:17 +0200
Source: kdelibs
Binary: kdelibs4c2a kdelibs kdelibs4-doc kdelibs-dbg kdelibs-data kdelibs4-dev
Architecture: source i386 all
Version: 4:3.5.7.dfsg.1-2
Distribution: unstable
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Description:
kdelibs - core libraries from the official KDE release
kdelibs-data - core shared data for all KDE applications
kdelibs-dbg - debugging symbols for kdelibs
kdelibs4-dev - development files for the KDE core libraries
kdelibs4-doc - developer documentation for the KDE core libraries
kdelibs4c2a - core libraries and binaries for all KDE applications
Closes: 254948 334974 408470 425314 431920
Changes:
kdelibs (4:3.5.7.dfsg.1-2) unstable; urgency=low
.
+++ Changes by Sune Vuorela:
.
* Reorder stuff in kde-applications.menu to get changing menu entries
working. (Closes: #254948)
* Add patch to fix issue with saving after redo in kate. (Closes: #431920)
* Better error messages when opening a tty fails. Thanks to Robert Millan.
(Closes: #334974)
* Don't refer to help:/kcmshell in kcmshell manpage. (Closes: #408470)
* Make sure kdeinit closes all files before terminating kde. (Closes: #425314)
Files:
ea23f71612500ed6792b4652376e2eb4 1663 libs optional kdelibs_3.5.7.dfsg.1-2.dsc
3d28f23e9a5abbc59597c5d38c412aeb 791914 libs optional kdelibs_3.5.7.dfsg.1-2.diff.gz
6079a35f9a08f9b36bb2fd414f71575e 34754 libs optional kdelibs_3.5.7.dfsg.1-2_all.deb
b02eec5bbcbf685968a2ad72f715cdfd 8686354 libs optional kdelibs-data_3.5.7.dfsg.1-2_all.deb
5a249b7ecdde92657398b3808da03cf9 36884044 doc optional kdelibs4-doc_3.5.7.dfsg.1-2_all.deb
5697649a00321776bfbff0f3b59d8815 9955220 libs optional kdelibs4c2a_3.5.7.dfsg.1-2_i386.deb
7ebff4a6ace18dd3d80a5a87d1829aca 1381406 libdevel optional kdelibs4-dev_3.5.7.dfsg.1-2_i386.deb
e9b56161b1c2cd050ba6f4d2981df952 26223042 libdevel extra kdelibs-dbg_3.5.7.dfsg.1-2_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Signed by Ana Guerrero
iD8DBQFGoLuqn3j4POjENGERAqM8AJ4wLvq89ZX3ffw6h5bN6geot6XPfgCfaGgl
cdJBIbKGa7oI8pxCkXu486I=
=Im3B
-----END PGP SIGNATURE-----
--- End Message ---