summaryrefslogtreecommitdiff
path: root/rhnop-server/noprml
diff options
context:
space:
mode:
Diffstat (limited to 'rhnop-server/noprml')
-rwxr-xr-xrhnop-server/noprml4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhnop-server/noprml b/rhnop-server/noprml
index 31e8ab7..9c572b2 100755
--- a/rhnop-server/noprml
+++ b/rhnop-server/noprml
@@ -27,6 +27,7 @@
local queue_name = "/rhnop"
+require "posix"
mq = require "mq"
-- reading timestamp (milliseconds since epoch)
@@ -43,7 +44,8 @@ if #arg < 4 then
end
-- open message queue
-local q, err = mq.create(queue_name, "wo")
+posix.umask("rwxrwxr-x")
+local q, err = mq.create(queue_name, "wo", "rw-rw----")
if q == nil then
io.stderr:write("creation of message queue failed: " .. err .. "\n")
os.exit(1)