pbs-client: use new non-Fd open from sys 0.4.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-10-19 14:28:10 +02:00
parent 6cffe7229f
commit a616c3dfd2
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ impl Archiver {
let mut noatime = OFlag::O_NOATIME;
loop {
return match proxmox_sys::fd::Fd::openat(
return match proxmox_sys::fd::openat(
&parent,
file_name,
oflags | noatime,

View File

@ -65,7 +65,7 @@ pub fn apply_at(
path_info: &Path,
on_error: &mut (dyn FnMut(Error) -> Result<(), Error> + Send),
) -> Result<(), Error> {
let fd = proxmox_sys::fd::Fd::openat(
let fd = proxmox_sys::fd::openat(
&parent,
file_name,
OFlag::O_PATH | OFlag::O_CLOEXEC | OFlag::O_NOFOLLOW,