mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Emulate ENOTDIR better
This commit is contained in:
parent
b76b2be2d0
commit
8d1c81ac9f
35 changed files with 80 additions and 50 deletions
|
@ -194,5 +194,10 @@ textwindows int __mkntpath2(const char *path,
|
|||
n -= 4;
|
||||
}
|
||||
|
||||
// turn "foo\\." into "foo\\"
|
||||
if (n > 2 && path16[n - 1] == u'.' && path16[n - 2] == u'\\') {
|
||||
path16[--n] = 0;
|
||||
}
|
||||
|
||||
return n;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue