From nobody Tue Aug 20 10:12:08 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wp4yJ6CbRz5SpmK; Tue, 20 Aug 2024 10:12:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wp4yJ5NKzz4CLx; Tue, 20 Aug 2024 10:12:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724148728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U/J0jsDH5RKi9st81OrxNQK61Ryjw8IACsEd3g7Jnkc=; b=vgchyZ0gLzGoAcoN/Qaf/35vpKp20ekEppK3BnqsW4pRCcId/4ALaz3TjZZKN7PK3IQ1PE 85nI0f83D1JmohcyIaOz9Mjbf6AC6pHxTlkN1CGBe4gLLoufSQ5qTCOyzdEmqgvkOUJ9cl /yQuGjOC3+DaAOJO7Dtola4LiQbr2zlGdBaDgPC25b2wktuRgAXCOqEddCRRrGsm8vYe+O TAsQrw7Q3VQMSp3RkMxSoKAlozFj68+/+XtpVkf3lYAsL+FH1f8dTuZv/CmLaDEh7WT6hK jAIa5CJwQmyAGvfE7tIljGF5NHG2WSNnHTkLh7FpaEwhIjtxEN3f3dPPSlOOMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724148728; a=rsa-sha256; cv=none; b=HEYLAKWmMk+SU3A/h4kSAFTFaYCm6jD5LsWdq1Aiuv9BZetLt+J6XGTkd0FoxE5QJrUsV8 P7lvzkaUk7VDRvZbKrICDXgvldWSMgTTINVla10EpEHTmb8qbe7P/moMZBT6IXwsqP3wYC iqxeAxxXuue+ndi5yV+B9qy18aSvm6ryROB36OjaXRthqrFlfpmD/ap8Y9UdoI6z09XnUq NshtA4pGXr0RhhaZ0Cxh/YZ+CPJ1hBAOl1fttV05MI+g7xSDwdcY/8kT3PTwcos6uTjKeD Qw6Fl3LY4rXH8Wbd/nkm2uk1gSfIBKqX0Ync3gEgwVn2W91MnGKUQIaKPJOIQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724148728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U/J0jsDH5RKi9st81OrxNQK61Ryjw8IACsEd3g7Jnkc=; b=iW05SofC7QukJwIGLJMSOcHT2PNHARQaeqUtteMxlxyEQ2hFZ7r3B9hYzUtr487X0ZpWVQ mqhWkm8hEnoYTk2r/8f9xlz2Z30/3DEQWBCupDqDdelsZttNKSiaugARGJGwyQHajpDI9z d0q5G9XxA6iDtC/dC1HliBB6I8YAa3CAhFMHlcbvUrfhpgqL+P+Fze9OgJuZ6wDyLIKPGK wdUCtu0vLu+vZIylB6Ni5ZQu7Uh/YIREAd+WNCijzbw7GhfDzMBrN2Z+dY2nfA8xs9odmo oRr3Kuw8xbe2cX+dxU5oP7czdJw5e0bIVOAgx5XmHShhDNpFNkx+kqj+H0opbw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wp4yJ4zllzwNn; Tue, 20 Aug 2024 10:12:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47KAC8Rx099625; Tue, 20 Aug 2024 10:12:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47KAC8HP099622; Tue, 20 Aug 2024 10:12:08 GMT (envelope-from git) Date: Tue, 20 Aug 2024 10:12:08 GMT Message-Id: <202408201012.47KAC8HP099622@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: a6ecbf2b3585 - main - nuageinit: improve debugging when mkdir fails List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a6ecbf2b35856e312d1e826b206142b9f930a760 Auto-Submitted: auto-generated The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=a6ecbf2b35856e312d1e826b206142b9f930a760 commit a6ecbf2b35856e312d1e826b206142b9f930a760 Author: Baptiste Daroussin AuthorDate: 2024-08-20 10:05:25 +0000 Commit: Baptiste Daroussin CommitDate: 2024-08-20 10:09:43 +0000 nuageinit: improve debugging when mkdir fails --- libexec/nuageinit/nuage.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua index cca1fe9b4678..116ab143ccfa 100644 --- a/libexec/nuageinit/nuage.lua +++ b/libexec/nuageinit/nuage.lua @@ -188,10 +188,7 @@ local function addsshkey(homedir, key) chownak = true dirattrs = lfs.attributes(dotssh_path) if dirattrs == nil then - if not lfs.mkdir(dotssh_path) then - warnmsg("nuageinit: impossible to create ".. dotssh_path) - return - end + assert(lfs.mkdir(dotssh_path)) chowndotssh = true dirattrs = lfs.attributes(homedir) end