From owner-svn-src-all@FreeBSD.ORG Mon Apr 20 22:15:20 2015 Return-Path: Delivered-To: svn-src-all@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 1CE89EE5; Mon, 20 Apr 2015 22:15:20 +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 E6E7ABEE; Mon, 20 Apr 2015 22:15:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3KMFJiV000424; Mon, 20 Apr 2015 22:15:19 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3KMFJDu000420; Mon, 20 Apr 2015 22:15:19 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201504202215.t3KMFJDu000420@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 20 Apr 2015 22:15:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281800 - head/usr.bin/patch X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2015 22:15:20 -0000 Author: pfg Date: Mon Apr 20 22:15:18 2015 New Revision: 281800 URL: https://svnweb.freebsd.org/changeset/base/281800 Log: patch(1): small include changes. Mostly to match OpenBSD, no functional change. Obtained from: OpenBSD Modified: head/usr.bin/patch/inp.c head/usr.bin/patch/pch.c head/usr.bin/patch/util.c Modified: head/usr.bin/patch/inp.c ============================================================================== --- head/usr.bin/patch/inp.c Mon Apr 20 22:12:19 2015 (r281799) +++ head/usr.bin/patch/inp.c Mon Apr 20 22:15:18 2015 (r281800) @@ -34,8 +34,8 @@ #include #include -#include #include +#include #include #include #include Modified: head/usr.bin/patch/pch.c ============================================================================== --- head/usr.bin/patch/pch.c Mon Apr 20 22:12:19 2015 (r281799) +++ head/usr.bin/patch/pch.c Mon Apr 20 22:15:18 2015 (r281800) @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include Modified: head/usr.bin/patch/util.c ============================================================================== --- head/usr.bin/patch/util.c Mon Apr 20 22:12:19 2015 (r281799) +++ head/usr.bin/patch/util.c Mon Apr 20 22:15:18 2015 (r281800) @@ -27,13 +27,13 @@ * $FreeBSD$ */ -#include #include #include #include #include #include +#include #include #include #include @@ -96,7 +96,7 @@ int backup_file(const char *orig) { struct stat filestat; - char bakname[MAXPATHLEN], *s, *simplename; + char bakname[PATH_MAX], *s, *simplename; dev_t orig_device; ino_t orig_inode; @@ -406,7 +406,7 @@ fetchname(const char *at, bool *exists, char * checked_in(char *file) { - char *filebase, *filedir, tmpbuf[MAXPATHLEN]; + char *filebase, *filedir, tmpbuf[PATH_MAX]; struct stat filestat; filebase = basename(file);