From owner-svn-src-head@FreeBSD.ORG Fri May 1 22:43:26 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EBBCCB81; Fri, 1 May 2015 22:43:26 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA72B1718; Fri, 1 May 2015 22:43:26 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t41MhQFn029591; Fri, 1 May 2015 22:43:26 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t41MhQTJ029590; Fri, 1 May 2015 22:43:26 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201505012243.t41MhQTJ029590@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Fri, 1 May 2015 22:43:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282329 - head/usr.bin/soelim X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 22:43:27 -0000 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);