aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-09 13:32:53 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-09 13:32:53 +0000
commit920afd33e922d413047c006afe479e6fb8af158c (patch)
tree6263f74ee1fdb81c8717630f5d578f528cc86c25 /telem.lua
parentDefault to using vim.tiny if /usr/bin/vim.tiny is not set. (diff)
More chmod fiddling. Current settings are wide open for live testing, will need to be set properly before deployment.
Diffstat (limited to 'telem.lua')
-rwxr-xr-xtelem.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/telem.lua b/telem.lua
index a6fcf47..c700043 100755
--- a/telem.lua
+++ b/telem.lua
@@ -177,7 +177,7 @@ function do_board()
-- Create directory
local board_dir = path.join(_BBS_ROOT, "boards", board)
lfs.mkdir(board_dir)
- os.execute("chmod og+rx " .. board_dir)
+ os.execute("chmod og+rwx " .. board_dir)
-- Write topic file
local topic_file = path.join(board_dir, "topic")
file.write(topic_file, desc)
@@ -284,6 +284,7 @@ function do_new()
local thread_dir = timestamp .. "-" .. username
local thread_path = path.join(current_board.directory, thread_dir)
lfs.mkdir(thread_path)
+ os.execute("chmod og+rwx " .. thread_path)
-- Write subject file
file.write(path.join(thread_path, "subject"),
subject)