summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fastjar/ChangeLog5
-rw-r--r--fastjar/jartool.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog
index 2b54f3bde3c..d3ee407ac1b 100644
--- a/fastjar/ChangeLog
+++ b/fastjar/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
+
+ * jartool.c (main): Ensure that only one of ftruncate and _chsize
+ is used.
+
2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
PR 16472
diff --git a/fastjar/jartool.c b/fastjar/jartool.c
index d57794dea92..f43af14a62d 100644
--- a/fastjar/jartool.c
+++ b/fastjar/jartool.c
@@ -580,8 +580,7 @@ int main(int argc, char **argv){
if (action == ACTION_UPDATE)
#if HAVE_FTRUNCATE
ftruncate (jarfd, lseek (jarfd, 0, SEEK_CUR));
-#endif
-#if HAVE__CHSIZE
+#else
_chsize (jarfd, lseek (jarfd, 0, SEEK_CUR));
#endif