From 6f32f49c0251f5cb468dd59ccc434c122f59a3cd Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 1 May 2015 22:43:26 +0000 Subject: [PATCH] Correct - handling. Reported by: pkg-fallout X-MFC-with: r282318 --- usr.bin/soelim/soelim.c | 3 +++ 1 file changed, 3 insertions(+) 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);