Bug#415584: missing configuration file ignored
Package: Xorg
Version: 1:7.1.0-11
Severity: normal
Hello,
The current behaviour of Xorg seems to be to ignore the '-config'
option, after printing an error, when the specified file is not found.
This is very confusing, as the error is easily missed. I don't see any
reason for the X server to continue when the user specifies a
configuration file and that file is absent - it should exit with a
non-zero exit code.
Also, as shown below, it seems that relative file paths are not
supported - this is also very confusing to new users.
Thanks,
Frederik
$ ls test.conf
test.conf
$ sudo X -config test.conf
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/taisa:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN
Current Operating System: Linux taisa 2.6.20-1-686 #1 SMP Tue Feb 20 22:59:46 UTC 2007 i686
Build Date: 07 March 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 20 14:58:44 2007
(EE) Unable to locate/open config file: "test.conf"
xf86AutoConfig: Primary PCI is 0:2:0
Running "getconfig -X 70101000 -I /etc/X11,/usr/etc/X11,/usr/lib/xorg/modules,/usr/lib/X11/getconfig -v 0x8086 -d 0x29a2 -r 0x02 -s 0x8086 -b 0x514d -c 0x0300"
sh: line 1: getconfig: command not found
(==) Using default built-in configuration (43 lines)
(EE) open /dev/fb0: No such file or directory
(WW) VESA(0): Failed to set up write-combining range (0x80400000,0x370000)
(WW) VESA(0): Failed to set up write-combining range (0x80000000,0x770000)
(EE) AIGLX: DRI module not loaded
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compatibility { include "complete" };
xkb_symbols { include "pc(pc105)+us" };
xkb_geometry { include "pc(pc105)" };
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages Xorg depends on:
ii libgl1-mesa-dri 6.5.1-0.5 A free implementation of the OpenG
ii libgl1-mesa-glx 6.5.1-0.5 A free implementation of the OpenG
ii libglu1-mesa 6.5.1-0.5 The OpenGL utility library (GLU)
ii type-handling [not+sparc] 0.2.19 dpkg architecture generation scrip
ii xbase-clients 1:7.1.ds1-2 miscellaneous X clients
ii xfonts-100dpi 1:1.0.0-3 100 dpi fonts for X
ii xfonts-75dpi 1:1.0.0-3 75 dpi fonts for X
ii xfonts-base 1:1.0.0-4 standard fonts for X
ii xfonts-scalable 1:1.0.0-6 scalable fonts for X
ii xkb-data 0.9-4 X Keyboard Extension (XKB) configu
ii xserver-xorg 1:7.1.0-11 the X.Org X server
ii xterm [x-terminal-emulator] 223-1 X terminal emulator
ii xutils 1:7.1.ds.3-1 X Window System utility programs
Xorg recommends no packages.
-- no debconf information
Reply to: