git: 701ac3adcb75 - stable/14 - nuageinit: improve debugging when mkdir fails
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Sep 2024 07:08:24 UTC
The branch stable/14 has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=701ac3adcb75951737d4dc09e19021ebb3a2b1f4
commit 701ac3adcb75951737d4dc09e19021ebb3a2b1f4
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-08-20 10:05:25 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
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