Revert "Deny non-absolut import pathes"
This reverts commitb90abfb868
. Because `libimagcontact` is not based on `libimagentryref` anymore (as of2b10ab0b36
), and thus does not put pathes into the header, we can allow non-absolute pathes here.
This commit is contained in:
parent
eb20a9d881
commit
f85dc02db6
1 changed files with 0 additions and 5 deletions
|
@ -162,11 +162,6 @@ fn import(rt: &Runtime) {
|
||||||
let scmd = rt.cli().subcommand_matches("import").unwrap(); // secured by main
|
let scmd = rt.cli().subcommand_matches("import").unwrap(); // secured by main
|
||||||
let path = scmd.value_of("path").map(PathBuf::from).unwrap(); // secured by clap
|
let path = scmd.value_of("path").map(PathBuf::from).unwrap(); // secured by clap
|
||||||
|
|
||||||
if !path.is_absolute() {
|
|
||||||
error!("Import path must be absolute. Sorry.");
|
|
||||||
exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
error!("Path does not exist");
|
error!("Path does not exist");
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in a new issue