From 26eb99596285302b63f3403e4cc9278c5ce7c17c Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sun, 9 Dec 2018 13:19:58 +0000 Subject: Use chmod to make new files/dirs world readable/exable. --- telem.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telem.lua b/telem.lua index 5c303d1..151f062 100755 --- a/telem.lua +++ b/telem.lua @@ -173,9 +173,11 @@ 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) -- Write topic file local topic_file = path.join(board_dir, "topic") file.write(topic_file, desc) + os.execute("chmod og+r " .. topic_file) -- Update representation of BBS update_boards() -- Done! @@ -288,6 +290,7 @@ function do_new() if not ret then print(str) end + os.execute("chmod og+r " .. newpath) -- Done! print("Post submitted.") end @@ -348,6 +351,7 @@ function do_type_reply() if not ret then print(str) end + os.execute("chmod og+r " .. newpath) current_thread_posts = get_posts(current_thread) current_post_index = #current_thread_posts do_type_show_post() -- cgit v1.2.3