Messages in this thread | | | Date | Tue, 20 Apr 1999 07:56:56 +1200 | From | Chris Wedgwood <> | Subject | Re: truncate("x", -1) |
| |
On Mon, Apr 19, 1999 at 02:01:08PM +0800, David Luyer wrote:
> The argument to [f]truncate is meant to be a size_t not a ssize_t, > so probably this is a signed/unsigned bug.
There at least two other places where the kernel uses an int instead of an size_t (unsigned). I think we've been lucky so far that nothing bad has happened and for various reason that these other places haven't caused problems... glibc2 has the right API but libc5 doesn't.
I think I'll look at getting some patches for these two other places out later today... I don't think anything will break and it might save us some grief.
-cw
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |