]> Pileus Git - ~andy/fetchmail/blobdiff - rcfile_y.y
Merge branch 'legacy_63'
[~andy/fetchmail] / rcfile_y.y
index c440875c105e947bffa46f74f6c39318978fa3f3..39bb7a99c217e83adde71af8e09cf1d277df1240 100644 (file)
@@ -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);