Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2025 12:34:55 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3969965c7f15 - main - nuageinit: fix setting owner when only the user is set
Message-ID:  <202506261234.55QCYtcl052936@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=3969965c7f156f0fe3e1dc8799362375cb53208a

commit 3969965c7f156f0fe3e1dc8799362375cb53208a
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-06-26 12:29:05 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-06-26 12:34:51 +0000

    nuageinit: fix setting owner when only the user is set
---
 libexec/nuageinit/nuage.lua | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua
index 8f46f97dc83c..8d75f86272a7 100644
--- a/libexec/nuageinit/nuage.lua
+++ b/libexec/nuageinit/nuage.lua
@@ -521,6 +521,9 @@ local function addfile(file, defer)
 	end
 	if file.owner then
 		local owner, group = string.match(file.owner, "([^:]+):([^:]+)")
+		if not owner then
+			owner = file.owner
+		end
 		unistd.chown(filepath, owner, group)
 	end
 	return true



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506261234.55QCYtcl052936>