Do not return EFAULT for ERROR_INVALID_NAME.

A file name that contains a colon will be rejected by GeFileInformation()
with ERROR_INVALID_NAME. This must be treated as ENOENT. Such a file name
ends up in do_lstat() when the rev:path notation is used (eg. in
'git show').
This commit is contained in:
Johannes Sixt
2007-09-24 21:13:50 +02:00
parent 8a7bc5f55c
commit b0eef9af24

View File

@@ -76,9 +76,6 @@ static int do_lstat(const char *file_name, struct stat *buf)
case ERROR_NOT_ENOUGH_MEMORY:
errno = ENOMEM;
break;
case ERROR_INVALID_NAME:
errno = EFAULT;
break;
default:
errno = ENOENT;
break;