mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-10 19:40:53 +00:00
rustfmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
10cc2a13b2
commit
2a23675db3
@ -409,12 +409,7 @@ impl Extractor {
|
|||||||
}
|
}
|
||||||
let mut file = unsafe {
|
let mut file = unsafe {
|
||||||
std::fs::File::from_raw_fd(
|
std::fs::File::from_raw_fd(
|
||||||
nix::fcntl::openat(
|
nix::fcntl::openat(parent, file_name, oflags, Mode::from_bits(0o600).unwrap())
|
||||||
parent,
|
|
||||||
file_name,
|
|
||||||
oflags,
|
|
||||||
Mode::from_bits(0o600).unwrap(),
|
|
||||||
)
|
|
||||||
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
@ -472,12 +467,7 @@ impl Extractor {
|
|||||||
}
|
}
|
||||||
let mut file = tokio::fs::File::from_std(unsafe {
|
let mut file = tokio::fs::File::from_std(unsafe {
|
||||||
std::fs::File::from_raw_fd(
|
std::fs::File::from_raw_fd(
|
||||||
nix::fcntl::openat(
|
nix::fcntl::openat(parent, file_name, oflags, Mode::from_bits(0o600).unwrap())
|
||||||
parent,
|
|
||||||
file_name,
|
|
||||||
oflags,
|
|
||||||
Mode::from_bits(0o600).unwrap(),
|
|
||||||
)
|
|
||||||
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
@ -1243,7 +1243,7 @@ async fn restore(
|
|||||||
ignore_xattrs: bool,
|
ignore_xattrs: bool,
|
||||||
ignore_ownership: bool,
|
ignore_ownership: bool,
|
||||||
ignore_permissions: bool,
|
ignore_permissions: bool,
|
||||||
overwrite: bool
|
overwrite: bool,
|
||||||
) -> Result<Value, Error> {
|
) -> Result<Value, Error> {
|
||||||
let repo = extract_repository_from_value(¶m)?;
|
let repo = extract_repository_from_value(¶m)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user