src/bin/proxmox-backup-client.rs: fix file type test
This commit is contained in:
parent
96482891ae
commit
6e907505aa
@ -416,7 +416,7 @@ fn create_backup(
|
|||||||
Err(err) => bail!("unable to access '{}' - {}", filename, err),
|
Err(err) => bail!("unable to access '{}' - {}", filename, err),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (stat.st_mode & libc::S_IFDIR) != 0 {
|
if (stat.st_mode & libc::S_IFMT) == libc::S_IFDIR {
|
||||||
|
|
||||||
upload_list.push((filename.to_owned(), target.to_owned()));
|
upload_list.push((filename.to_owned(), target.to_owned()));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user