From f0e678d503caff01f353460e0cbe27b153c7ee50 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 29 Apr 1997 21:53:20 +0000 Subject: Allow /dev/null as -f argument. svn path=/trunk/; revision=979 --- rcfile_y.y | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rcfile_y.y') 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. */ -- cgit v1.2.3