From f8b19c2e22315fcd7c19941b3d9c1a7da6e15148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 2 Jun 2022 11:58:46 +0200 Subject: [PATCH] proxmox-shared-memory: fix nix 0.24 compat in test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- proxmox-shared-memory/tests/raw_shared_mutex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),