nuageinit: fix setting owner when only the user is set

This commit is contained in:
Baptiste Daroussin
2025-06-26 14:29:05 +02:00
parent d9a4c24df1
commit 3969965c7f
+3
View File
@@ -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