X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b5481a756851b8ee1626aaf8f66dc4e4a11e6695..9322ba2854211794c27fae9468768b80b767c211:/config/config.c diff --git a/config/config.c b/config/config.c index 28436d93..81c3683f 100644 --- a/config/config.c +++ b/config/config.c @@ -63,7 +63,8 @@ etcpath (char *file) *--cp = '/'; if (access (epath, R_OK) != NOTOK) - return epath; /* else fall */ + return epath; + /* FALLTHRU */ try_it: default: @@ -72,9 +73,8 @@ try_it: /* Will leak because caller doesn't know cp was dynamically allocated. */ return cp; - } else { - free (cp); } + free (cp); } /* Check nmh `etc' directory */ @@ -106,6 +106,9 @@ char *mh_profile = ".mh_profile"; /* name of credentials file, defaults to .netrc in either Path or $HOME. */ char *credentials_file; +/* if set to 1, do not check permissions on credentials file */ +int credentials_no_perm_check = 0; + /* name of current message "sequence" */ char *current = "cur";