This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/1083] fix posix_fallocate semantics using ftruncate
- From: "cvs-commit at gcc dot gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Jul 2005 01:31:51 -0000
- Subject: [Bug libc/1083] fix posix_fallocate semantics using ftruncate
- References: <20050718012623.1083.roland@gnu.org>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-18 01:31 -------
Subject: Bug 1083
CVSROOT: /cvs/glibc
Module name: libc
Branch: glibc-2_3-branch
Changes by: roland@sources.redhat.com 2005-07-18 01:31:47
Modified files:
sysdeps/posix : posix_fallocate.c
Log message:
2005-04-29 Jakub Jelinek <jakub@redhat.com>
[BZ #1083]
* 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.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/posix/posix_fallocate.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.5&r2=1.5.4.1
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1083
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.