-- Fixed bug in CheckSafety.

This commit is contained in:
dfs
1997-07-31 01:51:18 +00:00
parent 7897067eda
commit 2c9465b4bb

View File

@@ -12,7 +12,7 @@
/***************************************************************/
#include "config.h"
static char const RCSID[] = "$Id: files.c,v 1.6 1997-07-31 01:49:38 dfs Exp $";
static char const RCSID[] = "$Id: files.c,v 1.7 1997-07-31 01:51:18 dfs Exp $";
#include <stdio.h>
#ifdef HAVE_STDLIB_H
@@ -583,6 +583,10 @@ static int CheckSafety()
#ifdef UNIX
struct stat statbuf;
if (fp == stdin) {
return 1;
}
if (fstat(fileno(fp), &statbuf)) {
fclose(fp);
fp = NULL;