Debian Bug report logs - #477999
screen script "startx" checks for XFCFG variable in wrong way.

Package: ltsp-client-core; Maintainer for ltsp-client-core is Debian LTSP Maintainers <team+ltsp@tracker.debian.org>; Source for ltsp-client-core is src:ltsp (PTS, buildd, popcon).

Reported by: Erik Thiele <erik@thiele-hydraulik.de>

Date: Sat, 26 Apr 2008 09:33:05 UTC

Severity: normal

Done: vagrant@freegeek.org

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#477999; Package ltsp-server. (full text, mbox, link).


Acknowledgement sent to Erik Thiele <erik@thiele-hydraulik.de>:
New Bug report received and forwarded. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Erik Thiele <erik@thiele-hydraulik.de>
To: submit@bugs.debian.org
Subject: screen script "startx" checks for XFCFG variable in wrong way.
Date: Sat, 26 Apr 2008 11:03:38 +0200
Package: ltsp-server
Version: 5.0.40~bzr20080319-1

/opt/ltsp/i386/usr/share/ltsp/screen.d/startx:

# If XFCFG is defined then attempt to use it instead of autoconfiguration
if [ -e ${XFCFG} ]; then
    XF_ARGS="$XF_ARGS -config ${XFCFG}"
fi

this code is wrong. it adds "-config" without anything behind it, if XFCFG is 
unset. thus i get a X calling line like this:

X -query 192.168.1.1 -config -terminate vt11 :10.0

obviously either -config must be gone or the filename of a configfile has to 
be passed.

this code would probably work better:


# If XFCFG is defined then attempt to use it instead of autoconfiguration
if [ -z "${XFCFG}" ]; then
    true
else
    if [ -e "${XFCFG}" ]; then
        XF_ARGS="$XF_ARGS -config ${XFCFG}"
    fi
fi


thx
cya
erik




Bug reassigned from package `ltsp-server' to `ltsp-client-core'. Request was from vagrant@freegeek.org to control@bugs.debian.org. (Sat, 26 Apr 2008 15:21:01 GMT) (full text, mbox, link).


Reply sent to vagrant@freegeek.org:
You have taken responsibility. (full text, mbox, link).


Notification sent to Erik Thiele <erik@thiele-hydraulik.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #12 received at 477999-done@bugs.debian.org (full text, mbox, reply):

From: vagrant@freegeek.org
To: Erik Thiele <erik@thiele-hydraulik.de>, 477999-done@bugs.debian.org
Subject: Bug#477999: screen script "startx" checks for XFCFG variable in wrong way.
Date: Sat, 26 Apr 2008 08:19:47 -0700
reassign 477999 ltsp-client-core
thanks

Version: 5.1.3-1

On Sat, Apr 26, 2008 at 11:03:38AM +0200, Erik Thiele wrote:
> /opt/ltsp/i386/usr/share/ltsp/screen.d/startx:
> 
> # If XFCFG is defined then attempt to use it instead of autoconfiguration
> if [ -e ${XFCFG} ]; then
>     XF_ARGS="$XF_ARGS -config ${XFCFG}"
> fi
> 
> this code is wrong. it adds "-config" without anything behind it, if XFCFG is 
> unset. thus i get a X calling line like this:
> 
> X -query 192.168.1.1 -config -terminate vt11 :10.0
> 
> obviously either -config must be gone or the filename of a configfile has to 
> be passed.

thanks for using ltsp!

i believe that version 5.1.3-1 and newer handles this differently, and
shouldn't have this problem. please re-open if this is not the case.

also in the future, please consider using reportbug, which will include
the versions of ltsp related packages in the ltsp chroot with your bug
report, or manually including the the version info.

live well,
  vagrant




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 25 May 2008 07:41:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:14:59 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.