4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-22 00:38:06 +08:00
Johannes Schindelin bd4fdcc059 Cygwin: path_conv: do not get confused by a directory with .lnk suffix
When trying to create a directory called `xyz` in the presence of a
directory `xyz.lnk`, the Cygwin runtime errors out with an `ENOENT`.

The root cause is actually a bit deeper: the `symlink_info::check()`
method tries to figure out whether the given path refers to a symbolic
link as emulated via `.lnk` files, but since it is a directory, that is
not the case, and that hypothesis is rejected.

However, the `fileattr` field is not cleared, so that a later
`.exists()` call on the instance mistakenly thinks that the symlink
actually exists. Let's clear that field.

This fixes https://github.com/msys2/msys2-runtime/issues/81

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2022-01-18 11:55:44 +01:00
..
2020-05-30 19:41:18 +02:00
2021-11-15 19:32:23 -05:00
2021-11-10 20:16:15 -05:00
2021-08-02 13:57:03 +02:00
2021-04-27 16:49:56 +01:00
2016-06-25 00:43:01 +02:00
2021-11-15 19:32:23 -05:00
2021-02-01 09:55:08 -05:00
2021-02-01 09:55:08 -05:00
2021-10-26 18:47:22 +02:00
2020-10-18 14:55:13 +01:00
2021-06-26 15:24:27 +01:00
2021-10-26 18:47:22 +02:00
2021-10-26 18:47:22 +02:00
2017-03-27 22:03:58 +01:00
2020-08-28 11:10:48 +02:00
2021-07-29 17:13:47 +02:00
2018-04-16 22:46:11 -05:00
2021-08-23 19:36:10 +02:00
2019-06-25 15:44:43 -04:00
2019-06-25 15:44:43 -04:00