From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20398 invoked from network); 22 Jan 2021 12:54:36 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 22 Jan 2021 12:54:36 -0000 Received: (qmail 4272 invoked by uid 89); 22 Jan 2021 12:54:57 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 4264 invoked from network); 22 Jan 2021 12:54:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8wslZsumlKD17GzrexlKEHnKqUFxfNnqDMFsg106dzc=; b=WOV6WqZC8K09YuOp9vEjZTIWK8ny8LYVCOCduHCDgORhNQStVAW43HnHV6ztsWCI74 lbScJq9Dgssl+gOo0vPZK1teOQ3lC5CJsaXrfCrqUR3d7hVHwAH8JUg81MMGHH+TlN6q kCrBiuh1INnTD9hyztIzT0hBp0n2oNxRcH6TbVpSVbXENdwaLO+1SlPi6KXnR1fvjbir h2T/a/f+kcUWALyIlcJCU37m0eaZLqBxE5gaudERv9kMBF9aCh16+VfG6WKSm33O2xh7 u0BmBoGFN4xrhET+tAbkeKWLzB94GRuLI0tiNXcYBtpgNJpi0iowl4zMiD5rXBiacwRf idkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8wslZsumlKD17GzrexlKEHnKqUFxfNnqDMFsg106dzc=; b=j85YGVU/i38MjCrUxJQmC4XpnfWz3w5FnTBGuUX4hPsckybHM/R2way3+N+eVz+e5q 31MvX7owt3r0DlKPlNW/whdVP6fAcduXXK3R0JgjL9FUUGz0/XJKix2NEu1eKeTqLDqE Oiik4ReaK5eiZDQl3l+AyAmo1EEAemEK1gaDqksSOPbkdNy5m+2BDg308rH6o6Mf4Cog N5aeDngrUOBO191pZt+v040rJFgQEOL6PB7lgHfcNftMH+GkT6engNwp4rGRwrFE6gQS mHyWWO0amlMnyWwWsXqhNW80KHSEt0DU8UfK6c8FGQ9CQmpeSvtKqYdmN2vGULj5zgkb PwfA== X-Gm-Message-State: AOAM530V7jxOGYYejmBAemIoYXfB2oQTzxbcnpJ/0mZcWTvj6Kx95RpF YudL1rR6u9cikTJiJNy+X+6fmIQVdQxmk1WuR2w= X-Google-Smtp-Source: ABdhPJzyUxql1hYmxEFKpdVjgxfmwNYIx+jpQfvkm+n6InibPktCHXj9Huui457SK2rGR3Sk2ApRqskYDFEQuWKtE+s= X-Received: by 2002:a05:6e02:4d2:: with SMTP id f18mr3815367ils.64.1611320069250; Fri, 22 Jan 2021 04:54:29 -0800 (PST) MIME-Version: 1.0 References: <719f5399-2d05-d6d0-7377-e4014aab1ac1@gmail.com> In-Reply-To: From: Muhammad Mahendra Subrata Date: Fri, 22 Jan 2021 19:54:16 +0700 Message-ID: Subject: Re: The multisubstitute commands in the run script generated by s6-usertree-maker are in a wrong order To: Laurent Bercot Cc: supervision@list.skarnet.org Content-Type: multipart/alternative; boundary="00000000000058e1ee05b97cb0db" --00000000000058e1ee05b97cb0db Content-Type: text/plain; charset="UTF-8" Great, thanks! MMS On Fri, Jan 22, 2021, 17:28 Laurent Bercot wrote: > >As shown above, the multisubstitute command that contains XDG_RUNTIME_DIR > is put after the one that contains USER, HOME, UID, GID, and GIDLIST. If > for example XDG_RUNTIME_DIR=/run/user/$UID, the $UID here will not be > substituted with the user's UID since by the time $UID is substituted, > $XDG_RUNTIME_DIR hasn't been substituted yet. So perhaps the order of these > two multisubstitute should be inverted. > > You're right, of course. I remember testing it, and it *working*, so > I did not think any further, but in retrospect it appears my test was > incorrect. > Thanks for the report! Fixed in git head. > > I'll give it the week-end, in case more bug-reports come in, then > I'll release 2.10.0.1. > > Note that skalibs-2.10.0.1 is out already, it fixes a bug that > manifests in execline's 'emptyenv -c' command. > > -- > Laurent > > --00000000000058e1ee05b97cb0db--