aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-11-30 19:26:17 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-11-30 19:26:17 +0000
commit5ed86c7189f48e3fa40a1fe8de6c84407d0cf776 (patch)
treedd2c187e79a0fafe7a842c47d5f1d7fc7bdd42c1 /rcfile_y.y
parent431c193b9526426f86b8b9c0d45f15e0439a882d (diff)
downloadfetchmail-5ed86c7189f48e3fa40a1fe8de6c84407d0cf776.tar.gz
fetchmail-5ed86c7189f48e3fa40a1fe8de6c84407d0cf776.tar.bz2
fetchmail-5ed86c7189f48e3fa40a1fe8de6c84407d0cf776.zip
Ready to ship 5.2.0.
svn path=/trunk/; revision=2656
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y12
1 files changed, 11 insertions, 1 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 8091b7c7..4cb0b5a4 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -428,7 +428,17 @@ int prc_parse_file (const char *pathname, const flag securecheck)
if ( (prc_errflag = prc_filecheck(pathname, securecheck)) != 0 )
return(prc_errflag);
- if (errno == ENOENT)
+ /*
+ * Croak if the configuration directory does not exist.
+ * This probably means an NFS mount failed and we can't
+ * see a configuration file that ought to be there.
+ * Question: is this a portable check? It's not clear
+ * that all implementations of lstat() will return ENOTDIR
+ * rather than plain ENOENT in this case...
+ */
+ if (errno == ENOTDIR)
+ return(PS_IOERR);
+ else if (errno == ENOENT)
return(PS_SUCCESS);
/* Open the configuration file and feed it to the lexer. */