summaryrefslogtreecommitdiff
path: root/luaext
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-22 16:44:33 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-22 18:09:23 +0200
commita8abeef91f0669e726e0b9ab398d56cc38efa3c6 (patch)
treea56e4f321915145557bf4527c45ec4d62ae78061 /luaext
parent43b08986a8aa0464566716f6fe0d510e96cd77bf (diff)
downloadrpm-a8abeef91f0669e726e0b9ab398d56cc38efa3c6.tar.gz
rpm-a8abeef91f0669e726e0b9ab398d56cc38efa3c6.tar.bz2
rpm-a8abeef91f0669e726e0b9ab398d56cc38efa3c6.zip
Use rpmConfigDir() instead of hardwired value in Lua initialization
- userconfig is actually unused
Diffstat (limited to 'luaext')
-rw-r--r--luaext/userconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaext/userconfig.c b/luaext/userconfig.c
index 014e32536..458768a05 100644
--- a/luaext/userconfig.c
+++ b/luaext/userconfig.c
@@ -51,7 +51,7 @@ static void mysaveline (lua_State *L, const char *s) {
static int luapath(lua_State *L)
{
lua_pushstring(L, "LUA_PATH");
- lua_pushstring(L, RPMCONFIGDIR "/lua/?.lua;?.lua");
+ lua_pushfstring(L, "%s/%s", rpmConfigDir(), "/lua/?.lua;?.lua");
lua_rawset(L, LUA_GLOBALSINDEX);
return 0;
}