src/bin/proxmox-backup-client.rs: fix file type test
This commit is contained in:
1 parent
96482891ae
commit
6e907505aa
1 file changed
+1
-1
@@ -416,7 +416,7 @@ fn create_backup(
|
||||
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()));
|
||||
|
||||
|
||||
Reference in new issue
Block a user