rustfmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
10cc2a13b2
commit
2a23675db3
@ -409,13 +409,8 @@ impl Extractor {
|
||||
}
|
||||
let mut file = unsafe {
|
||||
std::fs::File::from_raw_fd(
|
||||
nix::fcntl::openat(
|
||||
parent,
|
||||
file_name,
|
||||
oflags,
|
||||
Mode::from_bits(0o600).unwrap(),
|
||||
)
|
||||
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
||||
nix::fcntl::openat(parent, file_name, oflags, Mode::from_bits(0o600).unwrap())
|
||||
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
||||
)
|
||||
};
|
||||
|
||||
@ -472,13 +467,8 @@ impl Extractor {
|
||||
}
|
||||
let mut file = tokio::fs::File::from_std(unsafe {
|
||||
std::fs::File::from_raw_fd(
|
||||
nix::fcntl::openat(
|
||||
parent,
|
||||
file_name,
|
||||
oflags,
|
||||
Mode::from_bits(0o600).unwrap(),
|
||||
)
|
||||
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
||||
nix::fcntl::openat(parent, file_name, oflags, Mode::from_bits(0o600).unwrap())
|
||||
.map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
|
||||
)
|
||||
});
|
||||
|
||||
|
@ -1237,14 +1237,14 @@ We do not extract '.pxar' archives when writing to standard output.
|
||||
)]
|
||||
/// Restore backup repository.
|
||||
async fn restore(
|
||||
param: Value,
|
||||
allow_existing_dirs: bool,
|
||||
ignore_acls: bool,
|
||||
ignore_xattrs: bool,
|
||||
ignore_ownership: bool,
|
||||
ignore_permissions: bool,
|
||||
overwrite: bool
|
||||
) -> Result<Value, Error> {
|
||||
param: Value,
|
||||
allow_existing_dirs: bool,
|
||||
ignore_acls: bool,
|
||||
ignore_xattrs: bool,
|
||||
ignore_ownership: bool,
|
||||
ignore_permissions: bool,
|
||||
overwrite: bool,
|
||||
) -> Result<Value, Error> {
|
||||
let repo = extract_repository_from_value(¶m)?;
|
||||
|
||||
let archive_name = json::required_string_param(¶m, "archive-name")?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user