Bug#167212: xbase-clients: startx has a bug when tries to identify hostname
Package: xbase-clients
Version: 4.2.1-3
Severity: normal
I found a bug in startx script. It tries to identify hostname version, with
hostname --version but hostname prints its version to stderr, not stdout.
Therefore the version printed to stderr and the startx script cannot get the
version string.
Here is the small patch:
--- cut ---
--- /usr/bin/X11/startx 2002-10-16 22:14:22.000000000 +0200
+++ startx 2002-10-30 22:23:23.000000000 +0100
@@ -116,7 +116,7 @@
# set up default Xauth info for this machine
case `uname` in
Linux*)
- if [ -z "`hostname --version | grep GNU`" ]; then
+ if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
hostname=`hostname -f`
else
hostname=`hostname`
--- paste ---
KARASZI Istvan
-- System Information
Debian Release: testing/unstable
Kernel Version: Linux tulip 2.4.19 #1 Thu Aug 29 11:53:33 CEST 2002 i686 Intel(R) Pentium(R) III Mobile CPU 866MHz GenuineIntel GNU/Linux
Versions of the packages xbase-clients depends on:
ii cpp 2.95.4-17 The GNU C preprocessor.
ii debconf 1.2.13 Debian configuration management system
ii libc6 2.3.1-3 GNU C Library: Shared libraries and Timezone
ii libdps1 4.2.1-3 Display PostScript (DPS) client library
ii libfreetype6 2.1.2-10 FreeType 2 font engine, shared library files
ii libncurses5 5.2.20020112a- Shared libraries for terminal handling
ii libxaw7 4.2.1-3 X Athena widget set library
ii xlibmesa3 4.2.1-3 XFree86 version of Mesa 3D graphics library
ii xlibs 4.2.1-3 X Window System client libraries
ii xlibmesa3 4.2.1-3 XFree86 version of Mesa 3D graphics library
^^^ (Provides virtual package libgl1)
Reply to: