From d6c4e4c6922ecf2dd57b66729c7cbf593d0db6bd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 6 Nov 2009 14:35:33 +0000 Subject: Frank Terbeck: 27353: more VCS_Info sanity checks --- Functions/VCS_Info/VCS_INFO_bydir_detect | 1 + 1 file changed, 1 insertion(+) (limited to 'Functions/VCS_Info/VCS_INFO_bydir_detect') diff --git a/Functions/VCS_Info/VCS_INFO_bydir_detect b/Functions/VCS_Info/VCS_INFO_bydir_detect index 7985b6994..0b5996fd8 100644 --- a/Functions/VCS_Info/VCS_INFO_bydir_detect +++ b/Functions/VCS_Info/VCS_INFO_bydir_detect @@ -8,6 +8,7 @@ local basedir="." realbasedir realbasedir="$(VCS_INFO_realpath ${basedir})" while [[ ${realbasedir} != '/' ]]; do + [[ -r ${realbasedir} ]] || return 1 if [[ -n ${vcs_comm[detect_need_file]} ]] ; then [[ -d ${basedir}/${dirname} ]] && \ [[ -e ${basedir}/${dirname}/${vcs_comm[detect_need_file]} ]] && \ -- cgit 1.4.1