aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-09 13:49:51 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-09 13:49:51 +0000
commit77738c24872eb03d29b18e5f1fa54718d14c4b47 (patch)
tree48251b65c6a68ae837da6fbbaa034c9b54e46368
parentMore chmod fiddling. Current settings are wide open for live testing, will n... (diff)
Yet more permission fiddling.
-rwxr-xr-xtelem.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/telem.lua b/telem.lua
index c700043..0bd6cb3 100755
--- a/telem.lua
+++ b/telem.lua
@@ -286,8 +286,8 @@ function do_new()
lfs.mkdir(thread_path)
os.execute("chmod og+rwx " .. thread_path)
-- Write subject file
- file.write(path.join(thread_path, "subject"),
- subject)
+ file.write(path.join(thread_path, "subject"), subject)
+ os.execute("chmod og+r " .. path.join(thread_path, "subject"))
-- Move post file
local post_file = thread_dir -- first post and thread directory names are the same!
local newpath = path.join(thread_path, post_file)