]> Pileus Git - ~andy/fetchmail/blobdiff - rcfile_y.y
Fix: combination of --plugin and -f - fails
[~andy/fetchmail] / rcfile_y.y
index b32a6b0cfa9143024eb3287edb280afc2a561986..91de6146178f10fd7c6ea66cc6789fe3b8056cbc 100644 (file)
@@ -490,7 +490,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);