diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-03-15 04:20:50 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-03-15 04:20:50 +0000 |
| commit | d7740aea75c04ad1cb336088c9735adf80894e73 (patch) | |
| tree | 5093294a965252fd83a15cf665b3b12332c4dfc3 /lib/libarchive/archive_write_disk.c | |
| parent | eb971f9524ac1e01e3e8cd19c2f6506cbe4cd50c (diff) | |
Notes
Diffstat (limited to 'lib/libarchive/archive_write_disk.c')
| -rw-r--r-- | lib/libarchive/archive_write_disk.c | 2 |
1 files changed, 1 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) { |
