From 69c914d0626989d44eb3b5e89cca7081800ed57b Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 9 Jan 2020 07:45:56 +0000 Subject: build system: configure: verify_source_directory(): disallow spaces in path. --- configure | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 98a77db..76fc5b8 100755 --- a/configure +++ b/configure @@ -288,6 +288,13 @@ verify_source_directory() { output_step_prolog ${mb_script} 'verify_source_directory' + if [ _"$mb_source_dir" != _${mb_source_dir##* } ]; then + error_msg "source directory path contains spaces, aborting." + exit 1 + fi + + eval mb_source_dir=$(printf '%s' "$mb_source_dir") + if [ -z "$mb_source_dir" ]; then if [ _$mb_require_source_dir = _yes ]; then error_msg "$mb_package: specifying an external source directory is required." -- cgit v1.2.3