src/bin/proxmox-backup-client.rs: fix file type test

This commit is contained in:
Dietmar Maurer 2019-05-30 12:08:34 +02:00
parent 96482891ae
commit 6e907505aa

View File

@ -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()));