From 2d96fce20b5ab0dd04d66165be6e067312ff19e6 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Mon, 19 Nov 2012 23:12:20 -0200 Subject: [PATCH] update win32 lstat comment --- src/win32/posix_w32.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c index 06da7ca95..d0e366e28 100644 --- a/src/win32/posix_w32.c +++ b/src/win32/posix_w32.c @@ -106,12 +106,9 @@ static int do_lstat( errno = ENOENT; - /* ERROR_PATH_NOT_FOUND can mean either that a parent directory is - * missing or that an expected directory is a regular file. If we need - * POSIX behavior, then ENOTDIR must only be set for the second case - * (i.e. entry that is not a dir), and the first case should be ENOENT. + /* We need POSIX behavior, then ENOTDIR must set when any of the folders in the + * file path is a regular file,otherwise ENOENT must be set. */ - if (posix_enotdir) { /* scan up path until we find an existing item */ while (1) {