From: Ulrich Drepper Date: Tue, 3 May 2005 15:19:04 +0000 (+0000) Subject: * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0, X-Git-Tag: upstream/2.30~16677 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efe330aed1a1e757d4ca341187f46dd891d337ed;p=external%2Fglibc.git * 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. --- diff --git a/ChangeLog b/ChangeLog index b6ab53e..ef142bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-04-29 Jakub Jelinek + + * 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 [BZ #924]