diff options
author | Solderpunk <solderpunk@sdf.org> | 2019-05-18 17:44:58 +0000 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2019-05-18 17:44:58 +0000 |
commit | 742d6de1a897c8a76a78655b919e1a2b09f063b2 (patch) | |
tree | 5f3283f474f175ed780a957a87dcb39e1558ed68 | |
parent | add LICENSE and telem.c to repo (diff) | |
parent | Tighten up permissions on post files, so they are not world writable. (diff) |
Merge /home/solderpunk/telem
-rwxr-xr-x | telem.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -238,7 +238,7 @@ function do_board() raise_privs() local board_dir = path.join(_BBS_ROOT, "boards", board) lfs.mkdir(board_dir) - os.execute("chmod og+rwx " .. 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) @@ -445,7 +445,7 @@ function do_new() local thread_path = path.join(current_board.directory, thread_dir) raise_privs() lfs.mkdir(thread_path) - os.execute("chmod og+rwx " .. thread_path) + os.execute("chmod og+rx " .. thread_path) -- Write subject file file.write(path.join(thread_path, "subject"), subject) os.execute("chmod og+r " .. path.join(thread_path, "subject")) |