summaryrefslogtreecommitdiff
path: root/src/ld-lua.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2010-10-19 17:20:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2010-10-26 13:58:39 +0200
commitffc57249c889e656f6dbacd567fd6cc458a3356d (patch)
treec37d419a814fedc0b78fbb43bd8c559c83509fc3 /src/ld-lua.c
parente0e63649dc830cd63ae4e7a958e224ef3b2a1375 (diff)
downloadlogdiag-ffc57249c889e656f6dbacd567fd6cc458a3356d.tar.gz
logdiag-ffc57249c889e656f6dbacd567fd6cc458a3356d.tar.xz
logdiag-ffc57249c889e656f6dbacd567fd6cc458a3356d.zip
Make LdLibrary call LdLua to load symbol scripts.
Diffstat (limited to 'src/ld-lua.c')
-rw-r--r--src/ld-lua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ld-lua.c b/src/ld-lua.c
index c95a46e..297ba86 100644
--- a/src/ld-lua.c
+++ b/src/ld-lua.c
@@ -207,7 +207,8 @@ ld_lua_alloc (void *ud, void *ptr, size_t osize, size_t nsize)
gboolean ld_lua_check_file (LdLua *self, const gchar *filename)
{
g_return_val_if_fail (LD_IS_LUA (self), FALSE);
- return g_str_has_suffix (filename, ".lua");
+ return g_str_has_suffix (filename, ".lua")
+ && g_file_test (filename, G_FILE_TEST_IS_REGULAR);
}
/**