commit 73c7f1cbdcc53086e8d8748585cf5994b2670c16
parent 4200ed30036ead2bd6c10a39dbd5383f21124f5e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 25 Nov 2017 12:27:26 +0100
history: make nano's state directory accessible for the user only
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/history.c b/src/history.c
@@ -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"),