diff options
Diffstat (limited to 'src/cmd/restore.rs')
-rw-r--r-- | src/cmd/restore.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs index e03f3de..e9e89b5 100644 --- a/src/cmd/restore.rs +++ b/src/cmd/restore.rs @@ -264,7 +264,7 @@ fn restore_metadata(path: &Path, entry: &FilesystemEntry) -> Result<(), RestoreE unsafe { if entry.kind() != FilesystemKind::Symlink { debug!("chmod {:?}", path); - if chmod(path.as_ptr(), entry.mode()) == -1 { + if chmod(path.as_ptr(), entry.mode() as libc::mode_t) == -1 { let error = Error::last_os_error(); error!("chmod failed on {:?}", path); return Err(RestoreError::Chmod(pathbuf, error)); |