Commit 73c7f1cb authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

history: make nano's state directory accessible for the user only

parent 4200ed30
Showing with 1 addition and 1 deletion
+1 -1
......@@ -279,7 +279,7 @@ bool have_statedir(void)
mkdir(statepath, S_IRWXU);
free(statepath);
}
if (mkdir(statedir, S_IRWXU | S_IRWXG | S_IRWXO) == -1) {
if (mkdir(statedir, S_IRWXU) == -1) {
history_error(N_("Unable to create directory %s: %s\n"
"It is required for saving/loading "
"search history or cursor positions.\n"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment