aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-04-29 21:53:20 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-04-29 21:53:20 +0000
commitf0e678d503caff01f353460e0cbe27b153c7ee50 (patch)
tree6a1cb5af3e0ec509d46ec28a48943bff72db5c7b /rcfile_y.y
parent215a3549f46eeef56bb81cf9b75fc133ab610219 (diff)
downloadfetchmail-f0e678d503caff01f353460e0cbe27b153c7ee50.tar.gz
fetchmail-f0e678d503caff01f353460e0cbe27b153c7ee50.tar.bz2
fetchmail-f0e678d503caff01f353460e0cbe27b153c7ee50.zip
Allow /dev/null as -f argument.
svn path=/trunk/; revision=979
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index f2e703a9..bbab87e3 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -236,6 +236,10 @@ const char *pathname; /* pathname for the configuration file */
{
struct stat statbuf;
+ /* special case, useful for debugging purposes */
+ if (strcmp("/dev/null", pathname) == 0)
+ return(0);
+
/* the run control file must have the same uid as the REAL uid of this
process, it must have permissions no greater than 600, and it must not
be a symbolic link. We check these conditions here. */