[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH 2/2] tweaks: make nano's state directory accessible
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH 2/2] tweaks: make nano's state directory accessible for the user only |
Date: |
Sat, 25 Nov 2017 12:30:25 +0100 |
---
src/history.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/history.c b/src/history.c
index c9eab1e8..a1cc584a 100644
--- 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"),
--
2.14.3