src/bin/proxmox-backup-client.rs: generate a log file

This commit is contained in:
Dietmar Maurer committed 2019-03-01 09:35:41 +01:00
1 parent 3b151414f8
commit 17d6979afd
2 files changed
+25 -11

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ use failure::*;
use std::thread;
use std::os::unix::io::FromRawFd;
use std::path::PathBuf;
use std::path::{Path, PathBuf};
use futures::{Async, Poll};
use futures::stream::Stream;
@@ -54,7 +54,7 @@ impl CaTarBackupStream {
Ok(Self { pipe: Some(pipe), buffer, child: Some(child) })
}
pub fn open(dirname: &str) -> Result<Self, Error> {
pub fn open(dirname: &Path) -> Result<Self, Error> {
let dir = nix::dir::Dir::open(dirname, OFlag::O_DIRECTORY, Mode::empty())?;
let path = std::path::PathBuf::from(dirname);