aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)