Re: [PATCH] Fix bad typo that sabotates O_TRUNC

Linus Torvalds (torvalds@transmeta.com)
Thu, 9 Apr 1998 16:01:30 -0700 (PDT)


On Fri, 10 Apr 1998 ak@muc.de wrote:
>
> I found a bad typo in 2.1.94 do_open() - O_TRUNC is always ignored because
> of an obvious typo (flag&O_TRUNC instead of flags&O_TRUNC). O_TRUNC never
> works, because O_ACCMODE is smaller than O_TRUNC.

flags/flag should contain the same information apart from the low two bits
(which is the access mode). So I don't think this was a bug.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu