From: Tim Kientzle Date: Sat, 4 Dec 2021 18:56:33 +0000 (-0800) Subject: Merge pull request #1632 from wlozano0collabora/default-archive-file X-Git-Tag: v3.6.0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdb493d9789c3426d603d15d0c438e4b273f4ec8;p=thirdparty%2Flibarchive.git Merge pull request #1632 from wlozano0collabora/default-archive-file Have `bsdtar` default to stdout if this system has no tape device. This uses an `access()` check to see if the default tape device (e.g., `/dev/tape` on FreeBSD) exists and will use stdout as the default if it doesn't exist. If the system does have a tape device, there is no change to the existing behavior. For libarchive 4.0, we'll change the default behavior of `bsdtar`: * The `TAPE` environment variable will still be honored at runtime * The `_PATH_DEFTAPE` preprocessor macro will still be honored at build time * But `_PATH_DEFTAPE` will no longer be set by libarchive's default build, with the effect that for most people, bsdtar will default to stdout if there is no `-f` option provided. --- fdb493d9789c3426d603d15d0c438e4b273f4ec8