mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 17:57:25 +00:00
update win32 lstat comment
This commit is contained in:
parent
52ead7877d
commit
2d96fce20b
@ -106,12 +106,9 @@ static int do_lstat(
|
|||||||
|
|
||||||
errno = ENOENT;
|
errno = ENOENT;
|
||||||
|
|
||||||
/* ERROR_PATH_NOT_FOUND can mean either that a parent directory is
|
/* We need POSIX behavior, then ENOTDIR must set when any of the folders in the
|
||||||
* missing or that an expected directory is a regular file. If we need
|
* file path is a regular file,otherwise ENOENT must be set.
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (posix_enotdir) {
|
if (posix_enotdir) {
|
||||||
/* scan up path until we find an existing item */
|
/* scan up path until we find an existing item */
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user