summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nopsyncd.c4
-rw-r--r--src/qlistener.lua2
-rw-r--r--src/tcpserver.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/nopsyncd.c b/src/nopsyncd.c
index 3479ad5..c26d637 100644
--- a/src/nopsyncd.c
+++ b/src/nopsyncd.c
@@ -92,9 +92,9 @@ int init_main_loop(lua_State *L, const char* filename)
return -1;
}
- lua_pushstring(L, DATAROOTDIR);
+ lua_pushstring(L, DATAROOTDIR"/rhnop");
lua_setglobal(L, "rhnoplibdir");
- lua_pushstring(L, ETCDIR);
+ lua_pushstring(L, ETCDIR"/rhnop");
lua_setglobal(L, "rhnopescdir");
ret = lua_pcall(L, 0, 0, 0);
diff --git a/src/qlistener.lua b/src/qlistener.lua
index 044f635..050dfc1 100644
--- a/src/qlistener.lua
+++ b/src/qlistener.lua
@@ -75,7 +75,7 @@ function handle_message(msg)
end
function main_loop()
- init(rhnopescdir .. "nopsyncd.conf")
+ init(rhnopescdir .. "/nopsyncd.conf")
posix.umask("rwxrwxr-x")
local q, err = mq.create(cnf.queue_name, "ro", "rw-rw----")
diff --git a/src/tcpserver.lua b/src/tcpserver.lua
index 34d01aa..6deab81 100644
--- a/src/tcpserver.lua
+++ b/src/tcpserver.lua
@@ -27,7 +27,7 @@ conf = require "conf"
function init_server()
local server = assert(socket.tcp())
- cnf = conf.load(rhnopescdir .. "nopsyncd.conf")
+ cnf = conf.load(rhnopescdir .. "/nopsyncd.conf")
assert(server:setoption('reuseaddr', true))
assert(server:bind(cnf.tcp_host, cnf.tcp_port))
assert(server:listen(5))