X2Go Bug report logs - #1073
XSession-x2go: Hostname not set correctly

version graph

Package: x2goserver-xsession; Maintainer for x2goserver-xsession is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver-xsession is src:x2goserver.

Reported by: Benjamin Shadwick <benshadwick@gmail.com>

Date: Sat, 13 Aug 2016 14:30:01 UTC

Severity: normal

Tags: pending

Fixed in version 4.0.1.20

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 1073@bugs.x2go.org (full text, mbox, reply):

Received: (at 1073) by bugs.x2go.org; 13 Aug 2016 21:37:08 +0000
From benshadwick@gmail.com  Sat Aug 13 23:37:05 2016
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.7 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 77DEE3C11D
	for <1073@bugs.x2go.org>; Sat, 13 Aug 2016 23:37:05 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 9mVAYkO5FYul for <1073@bugs.x2go.org>;
	Sat, 13 Aug 2016 23:36:59 +0200 (CEST)
Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id BF29F3C11B
	for <1073@bugs.x2go.org>; Sat, 13 Aug 2016 23:36:58 +0200 (CEST)
Received: by mail-it0-f47.google.com with SMTP id f6so16083185ith.0
        for <1073@bugs.x2go.org>; Sat, 13 Aug 2016 14:36:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:from:date:message-id:subject:to;
        bh=0kCLy9vQYJI8P4BynF3npGWVu0uc9SfLvMIqjNrupXk=;
        b=gv7zRNw7AwZVal7dZIpoYz+xTQZb6J/JUlQ9sPE1IUi9G2tbuPmN4ppFBbQ4Z6tqS3
         ZMa6n7GXATtqlNCDsUB47hfoCehNO9TzsLsULgHu1qeWTn1h8VOF8qZbnFej3A7lj8rV
         5IZmW41wjstDggIAplyNzGotgGtH9dpKIhFnMxTWuw7q4W0j2lS0+0rblau0DmsqTLG2
         Y5W98GtkvVAQBjP2rOoufM52RoRIVt/rLP/kAzZBWmHeo2iFi1MR7u0Oe/Gz88HcZc7c
         df3U+rRhPKeEMELCVb2vu1ubfKq9qL93al3DCgYUVXiLt95N0VkmqI0c8/gjN1pNY14Q
         nElw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=0kCLy9vQYJI8P4BynF3npGWVu0uc9SfLvMIqjNrupXk=;
        b=K+noc1NwAmyRJTE10SzJMN6ZflI1/LW03UGnm9goc2iiAzf8EV6YEYOQGv/FHM5eEw
         X6vwPtFvY4hp/d2PYGVV78AmjjyDO1OcajMC752YJJJX/+6kXfGl5V1zY5M59woUedI2
         wIq93edyu/xEHBuRPblFdlL/QdEan7QwNhcfEcBxFT1j+MCdGKVnVnwMeeJTz5gfzF42
         uzmjXMl54L1oOXFRkOh2KubIwdKeVbIX3bVc998wAzjVYbearxwyKMdNtPuqbIUbyzYe
         m2y/TeENsBL5ppf6hkYTcSID7If4AWvinpvzkGpFtY9BoWA57xBWrlL9FS9Qcj3lAR+c
         Yr2w==
X-Gm-Message-State: AEkoousnhbrB+1paLLwMkLaisWpAExbY2tLbeAX3wFCj/Y1mKlAv1cjDlAY4XRSyTZLnYSfIXeAOOuMhc6Q4wg==
X-Received: by 10.36.111.65 with SMTP id x62mr6379599itb.32.1471124217625;
 Sat, 13 Aug 2016 14:36:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.50.128.166 with HTTP; Sat, 13 Aug 2016 14:36:37 -0700 (PDT)
From: Benjamin Shadwick <benshadwick@gmail.com>
Date: Sat, 13 Aug 2016 14:36:37 -0700
Message-ID: <CADZYHDAVirzqTfzefRUm_7TXzoWdPu9LyH4hn+BAuR98CAxR2w@mail.gmail.com>
Subject: XSession-x2go: Hostname not set correctly
To: 1073@bugs.x2go.org
Content-Type: text/plain; charset=UTF-8
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!


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sun Nov 24 10:23:39 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go 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.