diff --git a/proxmox-shared-memory/tests/raw_shared_mutex.rs b/proxmox-shared-memory/tests/raw_shared_mutex.rs index ddeab1bc..fff37c0c 100644 --- a/proxmox-shared-memory/tests/raw_shared_mutex.rs +++ b/proxmox-shared-memory/tests/raw_shared_mutex.rs @@ -88,7 +88,7 @@ fn create_test_dir(filename: &str) -> Option { let oflag = OFlag::O_RDWR | OFlag::O_CLOEXEC; // check for O_TMPFILE support - if let Err(nix::Error::Sys(nix::errno::Errno::EOPNOTSUPP)) = nix::fcntl::open( + if let Err(nix::errno::Errno::EOPNOTSUPP) = nix::fcntl::open( path.parent().unwrap(), oflag | OFlag::O_TMPFILE, Mode::empty(),