From owner-svn-src-all@FreeBSD.ORG Sun Mar 8 06:09:21 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5215B106564A; Sun, 8 Mar 2009 06:09:21 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 409C68FC18; Sun, 8 Mar 2009 06:09:21 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2869L7B074338; Sun, 8 Mar 2009 06:09:21 GMT (envelope-from kientzle@svn.freebsd.org) Received: (from kientzle@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2869LFH074336; Sun, 8 Mar 2009 06:09:21 GMT (envelope-from kientzle@svn.freebsd.org) Message-Id: <200903080609.n2869LFH074336@svn.freebsd.org> From: Tim Kientzle Date: Sun, 8 Mar 2009 06:09:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189524 - in head/usr.bin/tar: . test X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 08 Mar 2009 06:09:21 -0000 Author: kientzle Date: Sun Mar 8 06:09:20 2009 New Revision: 189524 URL: http://svn.freebsd.org/changeset/base/189524 Log: Match a comment to reduce differences with libarchive.googlecode.com. Modified: head/usr.bin/tar/bsdtar.c head/usr.bin/tar/test/main.c Modified: head/usr.bin/tar/bsdtar.c ============================================================================== --- head/usr.bin/tar/bsdtar.c Sun Mar 8 06:07:35 2009 (r189523) +++ head/usr.bin/tar/bsdtar.c Sun Mar 8 06:09:20 2009 (r189524) @@ -114,7 +114,7 @@ main(int argc, char **argv) bsdtar->fd = -1; /* Mark as "unused" */ option_o = 0; #ifdef _WIN32 - /* open() function is always with a binary mode. */ + /* Make sure open() function will be used with a binary mode. */ _set_fmode(_O_BINARY); #endif Modified: head/usr.bin/tar/test/main.c ============================================================================== --- head/usr.bin/tar/test/main.c Sun Mar 8 06:07:35 2009 (r189523) +++ head/usr.bin/tar/test/main.c Sun Mar 8 06:09:20 2009 (r189524) @@ -921,6 +921,10 @@ int main(int argc, char **argv) (void)argc; /* UNUSED */ +#ifdef _WIN32 + /* Make sure open() function will be used with a binary mode. */ + _set_fmode(_O_BINARY); +#endif /* * Name of this program, used to build root of our temp directory * tree.