mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-05 13:19:36 +00:00
cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
85742a0d57
commit
1e7467ee11
@ -226,12 +226,7 @@ pub fn create_dir<P: AsRef<Path>>(path: P, options: CreateOptions) -> Result<(),
|
|||||||
.unwrap_or(stat::Mode::from_bits_truncate(0o770));
|
.unwrap_or(stat::Mode::from_bits_truncate(0o770));
|
||||||
|
|
||||||
let path = path.as_ref();
|
let path = path.as_ref();
|
||||||
|
nix::unistd::mkdir(path, mode)?;
|
||||||
match nix::unistd::mkdir(path, mode) {
|
|
||||||
Ok(()) => {}
|
|
||||||
err => return err,
|
|
||||||
}
|
|
||||||
|
|
||||||
unistd::chown(path, options.owner, options.group)?;
|
unistd::chown(path, options.owner, options.group)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user