mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user