From 6e907505aaedb46b9e74720b95091fbf8dad045f Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 30 May 2019 12:08:34 +0200 Subject: [PATCH] src/bin/proxmox-backup-client.rs: fix file type test --- src/bin/proxmox-backup-client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index 4df0bb37..9bc70fc6 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -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()));