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:
Bryce McKinlay 2004-07-19 20:41:03 +00:00 committed by Bryce McKinlay
parent 4f1605d2ca
commit 932c738d20
2 changed files with 6 additions and 2 deletions

View 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

View 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