diff options
author | delphij <delphij@FreeBSD.org> | 2015-05-01 22:43:26 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-05-01 22:43:26 +0000 |
commit | ffdc60a5eab3ccd8c50433db90fadab8d3568cd8 (patch) | |
tree | a47e545cfb9b632ed661f609dc948617284a2368 /usr.bin/soelim | |
parent | 600aae1ef8e28b9e24a9394412bbd35dbe502101 (diff) | |
download | FreeBSD-src-ffdc60a5eab3ccd8c50433db90fadab8d3568cd8.zip FreeBSD-src-ffdc60a5eab3ccd8c50433db90fadab8d3568cd8.tar.gz |
Correct - handling.
Reported by: pkg-fallout
X-MFC-with: r282318
Diffstat (limited to 'usr.bin/soelim')
-rw-r--r-- | usr.bin/soelim/soelim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/soelim/soelim.c b/usr.bin/soelim/soelim.c index 78364c2..26f85d6 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); |