git: 3969965c7f15 - main - nuageinit: fix setting owner when only the user is set
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Jun 2025 12:34:55 UTC
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