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

master
Benno Schulenberg 2017-11-25 12:27:26 +01:00
parent 4200ed3003
commit 73c7f1cbdc
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ bool have_statedir(void)
mkdir(statepath, S_IRWXU); mkdir(statepath, S_IRWXU);
free(statepath); 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" history_error(N_("Unable to create directory %s: %s\n"
"It is required for saving/loading " "It is required for saving/loading "
"search history or cursor positions.\n"), "search history or cursor positions.\n"),