Skip to Content.
Sympa Menu

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

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (0e2fc4bdc5f7bad681bc0c9ddf31e59754ba6fe3)
  • Date: Fri, 1 Feb 2008 11:49:59 -0600

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



  • [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (0e2fc4bdc5f7bad681bc0c9ddf31e59754ba6fe3), Jaka Kranjc, 02/01/2008

Archive powered by MHonArc 2.6.24.

Top of Page