Commit 932c738d by Bryce McKinlay Committed by Bryce McKinlay

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
parent 4f1605d2
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment