From 6dc7a73bd50efc72e8260dcda2cf2ec4f158401d Mon Sep 17 00:00:00 2001 From: Jing Luo via pve-devel Date: Fri, 7 Jun 2024 18:33:13 +0900 Subject: [PATCH] tools: fix syscall mknod() b792e8df81 introduced a bug that can cause this: Undefined subroutine &PVE::Syscall::SYS_mknod called at /usr/share/perl5/PVE/Syscall.pm line 11 It should be mknod, not SYS_mknod. This caused other pve perl lib failing to build. I couldn't reproduce this on amd64 build, but I could reproduce this on arm64 build; however this didn't seem to fix the issue, unless I revert b792e8df81. cf: b792e8df81d70cc8fc4bc7d0655313d4a7f40c3d Signed-off-by: Jing Luo --- src/PVE/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 766c809..c2906de 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -1753,7 +1753,7 @@ sub mkdirat($$$) { sub mknod($$$) { my ($filename, $mode, $dev) = @_; - return syscall(PVE::Syscall::SYS_mknod, $filename, int($mode), int($dev)) == 0; + return syscall(PVE::Syscall::mknod, $filename, int($mode), int($dev)) == 0; } sub fchownat($$$$$) {