Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 2015 22:43:26 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282329 - head/usr.bin/soelim
Message-ID:  <201505012243.t41MhQTJ029590@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri May  1 22:43:26 2015
New Revision: 282329
URL: https://svnweb.freebsd.org/changeset/base/282329

Log:
  Correct - handling.
  
  Reported by:	pkg-fallout
  X-MFC-with:	r282318

Modified:
  head/usr.bin/soelim/soelim.c

Modified: head/usr.bin/soelim/soelim.c
==============================================================================
--- head/usr.bin/soelim/soelim.c	Fri May  1 21:59:32 2015	(r282328)
+++ head/usr.bin/soelim/soelim.c	Fri May  1 22:43:26 2015	(r282329)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505012243.t41MhQTJ029590>