FreeBSD does have fstat().
Correct the nasty typo this uncovers.
This commit is contained in:
parent
eb971f9524
commit
d7740aea75
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177213
@ -1611,7 +1611,7 @@ set_mode(struct archive_write_disk *a, int mode)
|
||||
if (a->pst != NULL) {
|
||||
/* Already have stat() data available. */
|
||||
#ifdef HAVE_FSTAT
|
||||
} else if (fd >= 0 && fstat(fd, &a->st) == 0) {
|
||||
} else if (a->fd >= 0 && fstat(a->fd, &a->st) == 0) {
|
||||
a->pst = &a->st;
|
||||
#endif
|
||||
} else if (stat(a->name, &a->st) == 0) {
|
||||
|
@ -53,6 +53,7 @@
|
||||
#define HAVE_FCHOWN 1
|
||||
#define HAVE_FCNTL_H 1
|
||||
#define HAVE_FSEEKO 1
|
||||
#define HAVE_FSTAT 1
|
||||
#define HAVE_FUTIMES 1
|
||||
#define HAVE_GETEUID 1
|
||||
#define HAVE_GETPID 1
|
||||
|
Loading…
Reference in New Issue
Block a user