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
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue