[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (0e2fc4bdc5f7bad681bc0c9ddf31e59754ba6fe3)

Jaka Kranjc scm at sourcemage.org
Fri Feb 1 12:49:59 EST 2008


GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx at sourcemage.org>:

 ChangeLog                        |    4 ++++
 var/lib/sorcery/modules/libcodex |    2 ++
 2 files changed, 6 insertions(+)

New commits:
commit 0e2fc4bdc5f7bad681bc0c9ddf31e59754ba6fe3
Author: Jaka Kranjc <lynxlynxlynx at sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx at sourcemage.org>

    libcodex: bail out of codex_check_cache if the grimoire dir is not
          listable (executable) #13508

diff --git a/ChangeLog b/ChangeLog
index 3306d4c..cfa74e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-01 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
+	* libcodex: bail out of codex_check_cache if the grimoire dir is not
+	  listable (executable) #13508
+
 2008-01-31 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
 	* libmisc: added error_message, a message() that also outputs to stderr
 	* scribe: output errors to stderr #13738 , fixed punctuation
diff --git a/var/lib/sorcery/modules/libcodex b/var/lib/sorcery/modules/libcodex
index 36f03e8..22dcd1d 100755
--- a/var/lib/sorcery/modules/libcodex
+++ b/var/lib/sorcery/modules/libcodex
@@ -725,6 +725,8 @@ function codex_cache_spell_lookup()  {
 #---------------------------------------------------------------------
 function codex_check_cache()  {
   codex_is_canonicalized $1 || return 1
+  [[ -x $1 ]] || return 1
+
   if ! [ -f $1/$SPELL_INDEX_FILE ] || ! [ -f $1/$PROVIDE_INDEX_FILE ]; then
       codex_create_cache
   fi



More information about the SM-Commit mailing list