nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 7d653e5a172632d9b3db9bb71f2cb6350a031674
parent c16e79b612eb8e061a4bd0b5f187c37a036fc403
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun,  5 Nov 2017 12:06:03 -0600

history: fix the check for an existing $HOME/.nano/ directory

This fixes https://savannah.gnu.org/bugs/?52339.

Diffstat:
Msrc/history.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/history.c b/src/history.c @@ -253,7 +253,7 @@ bool have_statedir(void) if (homedir != NULL) { statedir = concatenate(homedir, "/.nano/"); - if (stat(statedir, &dirstat) != 0 && S_ISDIR(dirstat.st_mode)) + if (stat(statedir, &dirstat) == 0 && S_ISDIR(dirstat.st_mode)) return TRUE; }