Correct - handling.
Reported by: pkg-fallout X-MFC-with: r282318
This commit is contained in:
parent
dde01df167
commit
6f32f49c02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282329
@ -57,6 +57,9 @@ soelim_fopen(const char *name)
|
|||||||
char path[MAXPATHLEN];
|
char path[MAXPATHLEN];
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
if (strcmp(name, "-") == 0)
|
||||||
|
return (stdin);
|
||||||
|
|
||||||
if ((f = fopen(name, "r")) != NULL)
|
if ((f = fopen(name, "r")) != NULL)
|
||||||
return (f);
|
return (f);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user