diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-05-10 23:27:22 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-05-10 23:27:22 +0000 |
| commit | 7e2ef17887522f7eeaf8ee672906cd9837ea9ac6 (patch) | |
| tree | e7af20075ddd5bcb91a1618d8305e984befa167a /lib/libarchive | |
| parent | ff64213dc7387dd05c1364b0428558691b80871b (diff) | |
Notes
Diffstat (limited to 'lib/libarchive')
| -rw-r--r-- | lib/libarchive/archive_write_disk.c | 2 | ||||
| -rw-r--r-- | lib/libarchive/config_freebsd.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/libarchive/archive_write_disk.c b/lib/libarchive/archive_write_disk.c index d3dfa68d2ca3..394df80525cb 100644 --- a/lib/libarchive/archive_write_disk.c +++ b/lib/libarchive/archive_write_disk.c @@ -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) { diff --git a/lib/libarchive/config_freebsd.h b/lib/libarchive/config_freebsd.h index 271e85716875..6dddb0f9b0d1 100644 --- a/lib/libarchive/config_freebsd.h +++ b/lib/libarchive/config_freebsd.h @@ -53,8 +53,10 @@ #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 #define HAVE_GRP_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_LCHFLAGS 1 |
