From: Sergey Poznyakoff Date: Sun, 25 Jun 2006 12:45:57 +0000 (+0000) Subject: Use ST_IS_SPARSE instead of sparse_file_p (update paxutils first) X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ecaff7cbba9d0a1b1fb2387707b04bb3fa19ec53;p=chaz%2Ftar Use ST_IS_SPARSE instead of sparse_file_p (update paxutils first) --- diff --git a/src/create.c b/src/create.c index 0d208d7..1b84fc8 100644 --- a/src/create.c +++ b/src/create.c @@ -380,7 +380,7 @@ bool file_dumpable_p (struct tar_stat_info *st) { if (dev_null_output) - return totals_option && sparse_option && sparse_file_p (st); + return totals_option && sparse_option && ST_IS_SPARSE (st->stat); return !(st->archive_file_size == 0 && (st->stat.st_mode & MODE_R) == MODE_R); } @@ -1499,7 +1499,7 @@ dump_file0 (struct tar_stat_info *st, const char *p, { enum dump_status status; - if (fd != -1 && sparse_option && sparse_file_p (st)) + if (fd != -1 && sparse_option && ST_IS_SPARSE (st->stat)) { status = sparse_dump_file (fd, st); if (status == dump_status_not_implemented)