fastjar: Small _chsize/ftruncate fix

Bryce McKinlay mckinlay@redhat.com
Wed Jul 21 09:06:00 GMT 2004


Andreas Schwab wrote:

>Bryce McKinlay <mckinlay@redhat.com> writes:
>
>  
>
>>--- jartool.c   19 Jul 2004 20:08:20 -0000      1.28
>>+++ jartool.c   19 Jul 2004 20:36:14 -0000
>>@@ -580,8 +580,7 @@
>>     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
>>    
>>
>
>What if neither ftruncate nor _chsize is supported?
>  
>
You'll get an error.

Bryce



More information about the Java-patches mailing list