]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Macs don't have tape drives, but they do define _PATH_DEFTAPE?
authorTim Kientzle <kientzle@gmail.com>
Sun, 21 Feb 2010 19:23:22 +0000 (14:23 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 21 Feb 2010 19:23:22 +0000 (14:23 -0500)
I wonder if I should reconsider defaulting the tape drive to "-" on Mac OS.

SVN-Revision: 1943

tar/bsdtar.c

index 62edc74e68d1da83b5ffa9286f11b4fb5fd1a904..d136baa550027f81bad24f35205e46cf6c5adea9 100644 (file)
@@ -84,6 +84,7 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/bsdtar.c,v 1.93 2008/11/08 04:43:24 kientzle
 #define        _PATH_DEFTAPE "\\\\.\\tape0"
 #endif
 #if defined(__APPLE__)
+#undef _PATH_DEFTAPE
 #define _PATH_DEFTAPE "-"  /* Mac OS has no tape support, default to stdio. */
 #endif