Commit 6c167442 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

files: avoid a warning about not being able to write a lockfile

Instead be more specific and say that the directory is not writable.
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -51,6 +51,8 @@ bool has_valid_path(const char *filename)
statusline(ALERT, _("Path '%s' is not a directory"), parentdir);
else if (access(parentdir, X_OK) == -1)
statusline(ALERT, _("Path '%s' is not accessible"), parentdir);
else if (ISSET(LOCKING) && access(parentdir, W_OK) == -1)
statusline(MILD, _("Directory '%s' is not writable"), parentdir);
else
validity = 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