jartool.c (main): Ensure that only one of ftruncate and _chsize is used.
2004-07-19 Bryce McKinlay <mckinlay@redhat.com> * jartool.c (main): Ensure that only one of ftruncate and _chsize is used. From-SVN: r84931
This commit is contained in:
parent
4f1605d2ca
commit
932c738d20
|
@ -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>
|
2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
|
||||||
|
|
||||||
PR 16472
|
PR 16472
|
||||||
|
|
|
@ -580,8 +580,7 @@ int main(int argc, char **argv){
|
||||||
if (action == ACTION_UPDATE)
|
if (action == ACTION_UPDATE)
|
||||||
#if HAVE_FTRUNCATE
|
#if HAVE_FTRUNCATE
|
||||||
ftruncate (jarfd, lseek (jarfd, 0, SEEK_CUR));
|
ftruncate (jarfd, lseek (jarfd, 0, SEEK_CUR));
|
||||||
#endif
|
#else
|
||||||
#if HAVE__CHSIZE
|
|
||||||
_chsize (jarfd, lseek (jarfd, 0, SEEK_CUR));
|
_chsize (jarfd, lseek (jarfd, 0, SEEK_CUR));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue