diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-03-08 06:09:20 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-03-08 06:09:20 +0000 |
commit | ad587d07658c4de498f3114431552c947483c79f (patch) | |
tree | 9b026b68148219bd0c4a01f973afbfeb29fedbe6 | |
parent | 482c4aae4512c869164ad1931f1ac68bf4a82e3b (diff) | |
download | FreeBSD-src-ad587d07658c4de498f3114431552c947483c79f.zip FreeBSD-src-ad587d07658c4de498f3114431552c947483c79f.tar.gz |
Match a comment to reduce differences with libarchive.googlecode.com.
-rw-r--r-- | usr.bin/tar/bsdtar.c | 2 | ||||
-rw-r--r-- | usr.bin/tar/test/main.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c index 7520555..c982061 100644 --- a/usr.bin/tar/bsdtar.c +++ b/usr.bin/tar/bsdtar.c @@ -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 diff --git a/usr.bin/tar/test/main.c b/usr.bin/tar/test/main.c index ad434aa..968cb35 100644 --- a/usr.bin/tar/test/main.c +++ b/usr.bin/tar/test/main.c @@ -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. |