Correct - handling.

Reported by:	pkg-fallout
X-MFC-with:	r282318
This commit is contained in:
Xin LI 2015-05-01 22:43:26 +00:00
parent dde01df167
commit 6f32f49c02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282329

View File

@ -57,6 +57,9 @@ soelim_fopen(const char *name)
char path[MAXPATHLEN];
size_t i;
if (strcmp(name, "-") == 0)
return (stdin);
if ((f = fopen(name, "r")) != NULL)
return (f);