Commit 7d653e5a authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

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

This fixes https://savannah.gnu.org/bugs/?52339.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
}
......
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