[X2Go-Dev] Bug#1073: XSession-x2go: Hostname not set correctly

Benjamin Shadwick benshadwick at gmail.com
Sat Aug 13 23:36:37 CEST 2016


I see the problem:

cur_hostname="$(hostname)"
if [ -z "${cur_name}" ] || [ "${cur_hostname}" = "(none)" ] || [
"${cur_hostname}" = "localhost" ]; then
        errormsg "Hostname not set correctly; aborting."
fi


You're setting up a variable "cur_hostname" but then checking whether
"cur_name" is empty instead of cur_hostname. Of course it's empty, it
wasn't set!


More information about the x2go-dev mailing list