Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2009 06:09:21 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189524 - in head/usr.bin/tar: . test
Message-ID:  <200903080609.n2869LFH074336@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



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