* tar-ustar.m4: Use dd instead of strings as it's more likely to be

around.  Suggested by Nelson H. F. Beebe.
This commit is contained in:
David Shaw 2006-07-12 14:41:08 +00:00
parent ce5ed75822
commit 0b5bc307d7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-07-12 David Shaw <dshaw@jabberwocky.com>
* tar-ustar.m4: Use dd instead of strings as it's more likely to
be around. Suggested by Nelson H. F. Beebe.
2006-07-11 David Shaw <dshaw@jabberwocky.com>
* tar-ustar.m4: Not all greps know the -q (quiet) flag, so

View File

@ -27,7 +27,7 @@ AC_DEFUN([GNUPG_CHECK_USTAR],
if test x$_mytar != x ; then
AC_MSG_CHECKING([whether $_mytar speaks USTAR])
echo hithere > conftest.txt
$_mytar -cf - conftest.txt | strings | grep ustar > /dev/null
$_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
_tar_bad=$?
rm conftest.txt