Received: (at submit) by bugs.x2go.org; 7 May 2013 09:36:48 +0000
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.0 required=5.0 tests=MIME_QP_LONG_LINE
	autolearn=ham version=3.3.2
X-Greylist: delayed 315 seconds by postgrey-1.34 at ymir; Tue, 07 May 2013 11:36:48 CEST
Received: from mozart.netitwork.net (mozart.netitwork.de [176.9.23.210])
	by ymir (Postfix) with ESMTP id 327DF5DB18
	for <submit@bugs.x2go.org>; Tue,  7 May 2013 11:36:48 +0200 (CEST)
Received: from mozart.netitwork.net (localhost [127.0.0.1])
	by mozart.netitwork.net (Postfix) with ESMTP id A45E7140107
	for <submit@bugs.x2go.org>; Tue,  7 May 2013 11:31:33 +0200 (CEST)
Received: from mozart.netitwork.net (localhost [127.0.0.1])
	by mozart (esets_smtp); Tue, 07 May 2013 11:31:33 +0200
X-Virus-Scanner: This message was checked by ESET Mail Security
	for Linux/BSD. For more information on ESET Mail Security,
	please, visit our website: http://www.eset.com/.
Received: from mozart.netitwork.de (localhost [127.0.0.1])
	by mozart.netitwork.net (Postfix) with ESMTP id 99F23140106
	for <submit@bugs.x2go.org>; Tue,  7 May 2013 11:31:33 +0200 (CEST)
Subject: When user-directories do not exist, saving sqlpass with x2godbadmin
 is not possible
From: =?utf-8?Q?Michael_Kromer?= <michael.kromer@netitwork.net>
To: =?utf-8?Q?submit=40bugs=2Ex2go=2Eorg?= <submit@bugs.x2go.org>
Date: Tue, 7 May 2013 11:31:33 +0200
Mime-Version: 1.0
Content-Type: multipart/mixed; 
 boundary="=_RDcykfLwcdullapLPgDU61IeHej9d-NoY76HBtelzvV8mwbO"
X-Priority: 3 (Normal)
X-Mailer: Zarafa 7.1.0-36420
Message-Id: <zarafa.5188c9f5.5ae4.71c29aee3f7d91f7@mozart.netitwork.de>
X-ESET-AntiSpam: OK;2;calc;2013-05-07 11:31:33;1305071131338596;ED94

This is a multi-part message in MIME format. Your mail reader does not
understand MIME message format.
--=_RDcykfLwcdullapLPgDU61IeHej9d-NoY76HBtelzvV8mwbO
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Package: x2goserver
Version: 4.0.0.1
Tag: patch

when a user directory does not exist yet (and is deeper than /home/$USER), =
the call of x2godbadmin --createuser fails:

create DB user "x2gouser_test"
Can't open password file /home/prod/user/test/.x2go/sqlpass at /usr/sbin/x2=
godbadmin line 350.

The reason is the mkdir call, which does not recursively create the directo=
ry needed. See patch attached.

- mike

--=_RDcykfLwcdullapLPgDU61IeHej9d-NoY76HBtelzvV8mwbO
Content-Type: text/x-patch; name=mkdir-fix.patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=mkdir-fix.patch

LS0tIC91c3Ivc2Jpbi94MmdvZGJhZG1pbi5vcmlnCTIwMTMtMDUtMDcgMTE6Mjk6MDcuMDAwMDAw
MDAwICswMjAwCisrKyAvdXNyL3NiaW4veDJnb2RiYWRtaW4JMjAxMy0wNS0wNyAxMToyOTowNS4w
MDAwMDAwMDAgKzAyMDAKQEAgLTM0Miw3ICszNDIsNyBAQCBzdWIgYWRkX3VzZXIoKQogCiAJaWYg
KCEgLWQgIiRkaXIvLngyZ28iICkKIAl7Ci0JCW1rZGlyKCIkZGlyLy54MmdvIik7CisJCXN5c3Rl
bSgibWtkaXIgLXAgJGRpci8ueDJnbyIpOwogCX0KIAogCSNzYXZlIHVzZXIgcGFzc3dvcmQK

--=_RDcykfLwcdullapLPgDU61IeHej9d-NoY76HBtelzvV8mwbO--
