git: 7151c780ac95 - stable/14 - nuageinit: fix setting owner when only the user is set
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Jul 2025 14:32:30 UTC
The branch stable/14 has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=7151c780ac95f90cc5f601eb06849f32e073d5b7
commit 7151c780ac95f90cc5f601eb06849f32e073d5b7
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-06-26 12:29:05 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-07-08 14:31:48 +0000
nuageinit: fix setting owner when only the user is set
(cherry picked from commit 3969965c7f156f0fe3e1dc8799362375cb53208a)
---
libexec/nuageinit/nuage.lua | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua
index dc323a6accbf..11958e8b5cc2 100644
--- a/libexec/nuageinit/nuage.lua
+++ b/libexec/nuageinit/nuage.lua
@@ -527,6 +527,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