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: b792e8df81
Signed-off-by: Jing Luo <jing@jing.rocks>
This commit is contained in:
Jing Luo via pve-devel 2024-06-07 18:33:13 +09:00 committed by Wolfgang Bumiller
parent 1a6005ad23
commit 6dc7a73bd5

View File

@ -1753,7 +1753,7 @@ sub mkdirat($$$) {
sub mknod($$$) { sub mknod($$$) {
my ($filename, $mode, $dev) = @_; 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($$$$$) { sub fchownat($$$$$) {