mirror of https://github.com/dswd/zvault
Remote path must be absolute
This commit is contained in:
parent
3b50267155
commit
e3ed5f628d
|
@ -8,6 +8,7 @@ This project follows [semantic versioning](http://semver.org).
|
|||
* [added] Added support for xattrs in fuse mount
|
||||
* [modified] Also documenting common flags in subcommands
|
||||
* [modified] Using repository aliases (**conversion needed**)
|
||||
* [modified] Remote path must be absolute
|
||||
|
||||
|
||||
### v0.3.2 (2017-05-11)
|
||||
|
|
|
@ -287,6 +287,10 @@ pub fn run() -> Result<(), ErrorCode> {
|
|||
}
|
||||
match args {
|
||||
Arguments::Init{repo_path, bundle_size, chunker, compression, encryption, hash, remote_path} => {
|
||||
if ! Path::new(&remote_path).is_absolute() {
|
||||
error!("The remote path of a repository must be absolute.");
|
||||
return Err(ErrorCode::InvalidArgs)
|
||||
}
|
||||
let mut repo = checked!(Repository::create(repo_path, Config {
|
||||
bundle_size: bundle_size,
|
||||
chunker: chunker,
|
||||
|
|
Loading…
Reference in New Issue