diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-11-30 19:26:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-11-30 19:26:17 +0000 |
commit | 5ed86c7189f48e3fa40a1fe8de6c84407d0cf776 (patch) | |
tree | dd2c187e79a0fafe7a842c47d5f1d7fc7bdd42c1 /rcfile_y.y | |
parent | 431c193b9526426f86b8b9c0d45f15e0439a882d (diff) | |
download | fetchmail-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.y | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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. */ |