open: fix opening directory on mingw
authorEric Blake <ebb9@byu.net>
Sat, 3 Oct 2009 04:41:54 +0000 (22:41 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 3 Oct 2009 04:46:07 +0000 (22:46 -0600)
commit14b6206605af50774bc0202b7cbcce9418f8ede5
tree5d256c5f9e9708567396a09854349ea3f451e1b5
parentec65f38e49b3db77ef9866f888f0a8d743cfe742
open: fix opening directory on mingw

open(".",O_WRONLY) used uninitialized memory to decide whether
to succeed or fail - never a good idea ;)

* lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/open.c