Skip to content

Commit

Permalink
* sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
Browse files Browse the repository at this point in the history
	call ftruncate if offset is bigger than current size.  Make sure
	the file is offset + len bytes long if that is more than current size.
	Don't overwrite previous content of the file.
	* sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
	Likewise.
  • Loading branch information
Ulrich Drepper committed May 3, 2005
1 parent fe80efd commit efe330a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2005-04-29 Jakub Jelinek <jakub@redhat.com>

* sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
call ftruncate if offset is bigger than current size. Make sure
the file is offset + len bytes long if that is more than current size.
Don't overwrite previous content of the file.
* sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
Likewise.

2005-05-02 Roland McGrath <roland@redhat.com>

[BZ #924]
Expand Down

0 comments on commit efe330a

Please sign in to comment.