]> Pileus Git - ~andy/fetchmail/commitdiff
Allow /dev/null as -f argument.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 29 Apr 1997 21:53:20 +0000 (21:53 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 29 Apr 1997 21:53:20 +0000 (21:53 -0000)
svn path=/trunk/; revision=979

rcfile_y.y

index f2e703a9285c2b35d363027470f962783ff4b958..bbab87e3811c6e3a8b321573ab18b5a292298748 100644 (file)
@@ -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. */