2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jul 2004 20:41:03 +0000 (20:41 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jul 2004 20:41:03 +0000 (20:41 +0000)
* jartool.c (main): Ensure that only one of ftruncate and _chsize
is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84931 138bc75d-0d04-0410-961f-82ee72b054a4

fastjar/ChangeLog
fastjar/jartool.c

index 2b54f3b..d3ee407 100644 (file)
@@ -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
index d57794d..f43af14 100644 (file)
@@ -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