*** This bug is a duplicate of bug 1020113 ***
https://bugs.launchpad.net/bugs/1020113
On 2013-05-02 09:05:16 -0500, Andrey de Oliveira wrote:
> When thinclient boot, the XDM_SERVER value is ignored.
...
> In xdmcp script lines 19-23, exists a condition, based in number of
> arguments:
>
> 19: if [ $# -lt 1 ]; then
> 20: X_ARGS="$X_ARGS -query ${XDM_SERVER}"
> 21: else
> 22: X_ARGS="$X_ARGS $*"
> 23: fi
>
> Even without arguments, in this case, $args empty, bash/sh return 1 as
> total arguments in $# variable, because of the double quotes used in
> screen_session script.
Wouldn't a viable option be:
diff --git a/client/share/ltsp/screen.d/xdmcp b/client/share/ltsp/screen.d/xdmcp
index 26924c0..d9e31a0 100755
--- a/client/share/ltsp/screen.d/xdmcp
+++ b/client/share/ltsp/screen.d/xdmcp
@@ -16,7 +16,7 @@
XDM_SERVER=${XDM_SERVER:-${SERVER}}
-if [ $# -lt 1 ]; then
+if [ -z "$1" ]; then
X_ARGS="$X_ARGS -query ${XDM_SERVER}"
else
X_ARGS="$X_ARGS $*"
That seems more meaningful than checking the number of arguments
anyways. I guess you could get passed an empty argument...
live well,
vagrant
** Changed in: ltsp
Importance: Undecided => Low
** Changed in: ltsp
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1175618
Title:
xdmcp script don't work with a remote server
To manage notifications about this bug go to:
https://bugs.launchpad.net/ltsp/+bug/1175618/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs