From nobody Tue Sep 03 07:08:24 2024 X-Original-To: dev-commits-src-all@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 4WycCr75VVz5MQpW; Tue, 03 Sep 2024 07:08:24 +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 4WycCr3l4xz4TYV; Tue, 3 Sep 2024 07:08:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725347304; 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=n4t3N+mMOzAsPEcfhsWiho4PZWTMXgR9++vTk96+7z8=; b=mtxOYItIV7/e4kydYUVe26z0eTQovBFyFKUUXiMgoJ8/gPJeyO2VBwsGtXaE/Y6gnn2eeg g8wQPwWDUCQGYpIUDgvKEO2oHf7zl4Ld4FQWcGBcCGdqkKXR5ci9lSuoWZ+pHNtXcbsaen jG/JATo2ryScMkzlkvPQ09Gwi87ag/yxYhiHOFrMSPGwsSoabCAuZ4Sse4mHbfbwyVEpQt poZe6EfIF/ztOEY1WyMgSkgPPDXoog7Qwt/K1933dd9kqY+8MUebJ84ZtT3HMSpmJBPS2K piufYYOQ1oIcdLq+2qJ/yktfObRi57ElphpYUQQyQ8u6AvrGzkkl4ruymwWrCg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725347304; a=rsa-sha256; cv=none; b=ZKsGVcQwrAZ4nQGVQOrWdCDXkZDEIUEt60wYEIdk0lwWDrelE4us0GtmIK/WxhNiMqsg8B K6Boyf4CVITm2gV9UAoBB8MPdqYid8hmb+mV3oMX6WvgPPTQtnLYynTUEaODyJTcbzkcqC sVVjUkct8WLEAiBgAj2JPcaW8eS72m9aOPpKAn4h4tFLyssvz7dto6uxJQ4RtSsIy2uZ2r Ws2k6O/2bTetqtUHNxbno1DetKfPEZ9yFY9aDUueFkWVkCLikxcwgEIbWnrzyoQdg2MFCH YIeNpu/2H0KxwMyFNxj66CoAkyI8imwfCWZSj0aVFD6s/040wvkmcSEaPHUppw== 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=1725347304; 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=n4t3N+mMOzAsPEcfhsWiho4PZWTMXgR9++vTk96+7z8=; b=yqWBNTTQ3df1eHUWnwYp4vio5u2lukaCZ/ma0doqRlSVFA+gQfGDN9q0IzX6I/6B9QIJrk jM4/E2QOzoXzvIbTmOBjWK1LN0jfsXWhThLVVhUfKBWJnxyu8y3OfcBj2epH2647luA9RI b/h0ggEyMqbPqgmuMGU2fB0v3+Lbf8GoamhfWvcPrsZKRVdwZUyWktY5fUqHw7K5FXa21l 3NMzg1iyElTwOy319eX5FcVNBt/wOmiI3zLPuMxHvoUnNcFr62E0DLJxCRR8l8mGCMczkO tYPozVzJlhdLLaePUMTh15pL4pHdKIyPz4GQybJMSlJg0VIeYzbQPUN50oEbUQ== 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 4WycCr3KK8zWl9; Tue, 3 Sep 2024 07:08:24 +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 48378OUr069299; Tue, 3 Sep 2024 07:08:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48378Oke069296; Tue, 3 Sep 2024 07:08:24 GMT (envelope-from git) Date: Tue, 3 Sep 2024 07:08:24 GMT Message-Id: <202409030708.48378Oke069296@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: 701ac3adcb75 - stable/14 - nuageinit: improve debugging when mkdir fails List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 701ac3adcb75951737d4dc09e19021ebb3a2b1f4 Auto-Submitted: auto-generated The branch stable/14 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=701ac3adcb75951737d4dc09e19021ebb3a2b1f4 commit 701ac3adcb75951737d4dc09e19021ebb3a2b1f4 Author: Baptiste Daroussin AuthorDate: 2024-08-20 10:05:25 +0000 Commit: Baptiste Daroussin CommitDate: 2024-09-03 07:05:25 +0000 nuageinit: improve debugging when mkdir fails (cherry picked from commit a6ecbf2b35856e312d1e826b206142b9f930a760) --- 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