aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-31 09:56:30 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-31 09:56:30 +0530
commitf8de2b225489cdfe23b1a104120703bf05835978 (patch)
tree6875255d6e5ca74f17b4d3e41f002684de0b4e22 /src
parent8791444adcfe1048db0cb468f6f36ce8ba7f4e11 (diff)
downloadnnn-f8de2b225489cdfe23b1a104120703bf05835978.tar.gz
Minor changes
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 0a23339..78bcae3 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -153,7 +153,7 @@
/* Version compare macros */
/*
* states: S_N: normal, S_I: comparing integral part, S_F: comparing
- * fractionnal parts, S_Z: idem but with leading Zeroes only
+ * fractional parts, S_Z: idem but with leading Zeroes only
*/
#define S_N 0x0
#define S_I 0x3
@@ -349,7 +349,7 @@ static const char * const messages[] = {
"/.nnnXXXXXX",
};
-/* Supported config env vars */
+/* Supported configuration environment variables */
#define NNN_BMS 0
#define NNN_OPENER 1
#define NNN_CONTEXT_COLORS 2
@@ -390,7 +390,7 @@ static const char * const env_cfg[] = {
#endif
};
-/* Required env vars */
+/* Required environment variables */
#define SHELL 0
#define VISUAL 1
#define EDITOR 2
@@ -869,7 +869,7 @@ static bool cpsafe(void)
}
/* Fail if copy file path isn't accessible */
- if (access(g_cppath, R_OK) == -1) {
+ if (access(g_cppath, R_OK | W_OK) == -1) {
printmsg("check copyfile permission");
return FALSE;
}