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. _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"