diff --git a/usr.bin/soelim/soelim.c b/usr.bin/soelim/soelim.c index 78364c2f8b66..26f85d64f32c 100644 --- a/usr.bin/soelim/soelim.c +++ b/usr.bin/soelim/soelim.c @@ -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);