Argh. Restore a stat() call that was erroneously removed.

Thanks to: WATANABE, Kazuo
Pointy hat: me, from the handy dispenser I keep nearby.
This commit is contained in:
Tim Kientzle 2006-12-04 08:01:53 +00:00
parent 63d8511da8
commit 5af1711729
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164868

View File

@ -118,6 +118,12 @@ file_open(struct archive *a, void *client_data)
archive_write_set_bytes_in_last_block(a, 0);
}
if (fstat(mine->fd, &st) != 0) {
archive_set_error(a, errno, "Couldn't stat '%s'",
mine->filename);
return (ARCHIVE_FATAL);
}
/*
* Set up default last block handling.
*/