Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2025 12:34:54 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: d9a4c24df1c4 - main - nuageinit: write_files fix typo breaking tests
Message-ID:  <202506261234.55QCYsYS052902@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=d9a4c24df1c438e7cd561396e57937be3b105135

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

    nuageinit: write_files fix typo breaking tests
---
 libexec/nuageinit/nuage.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua
index cdc0fc6cf2a7..8f46f97dc83c 100644
--- a/libexec/nuageinit/nuage.lua
+++ b/libexec/nuageinit/nuage.lua
@@ -517,11 +517,11 @@ local function addfile(file, defer)
 	if file.permissions then
 		-- convert from octal to decimal
 		local perm = tonumber(file.permissions, 8)
-		sys_stat.chmod(file.path, perm)
+		sys_stat.chmod(filepath, perm)
 	end
 	if file.owner then
 		local owner, group = string.match(file.owner, "([^:]+):([^:]+)")
-		unistd.chown(file.path, owner, group)
+		unistd.chown(filepath, owner, group)
 	end
 	return true
 end



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