diff options
-rwxr-xr-x | blogthon.cgi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 0aed854..4f35d81 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -120,6 +120,9 @@ if not re.match("^.*\/$", blog_url): if not os.path.exists(entries_dir): errorpage("Directory \"%s\" does not exist!" % entries_dir) +if not os.access(entries_dir, os.W_OK): + errorpage("Directory \"%s\" is not writable!" % entries_dir) + if not os.path.exists(staticpages_dir): errorpage("Directory \"%s\" does not exist!" % staticpages_dir) |