X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=rcfile_y.y;h=39bb7a99c217e83adde71af8e09cf1d277df1240;hb=87bcf29364c4640edb87cc2186b965d1a564d70c;hp=c440875c105e947bffa46f74f6c39318978fa3f3;hpb=dbb179567dd2e850e0e8327a823d21ee311db823;p=~andy%2Ffetchmail diff --git a/rcfile_y.y b/rcfile_y.y index c440875c..39bb7a99 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -503,7 +503,8 @@ int prc_parse_file (const char *pathname, const flag securecheck) yyparse(); /* parse entire file */ - fclose(yyin); /* not checking this should be safe, file mode was r */ + if (yyin != stdin) + fclose(yyin); /* not checking this should be safe, file mode was r */ if (prc_errflag) return(PS_SYNTAX);