diff --git a/CHANGELOG.md b/CHANGELOG.md index 61e0fc3..112c4b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 7c339d6..d6a852d 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -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,