Files
git/compat
Johannes Schindelin 98d9b23e90 mingw: short-circuit the conversion of /dev/null to UTF-16
In the next commit, we want to disallow accessing any path that contains
any segment that is equivalent to `NUL`. In particular, we want to
disallow accessing `NUL` (e.g. to prevent any repository from being
checked out that contains a file called `NUL`, as that is not a valid
file name on Windows).

However, there are legitimate use cases within Git itself to write to
the Null device. As Git is really a Linux project, it does not abstract
that idea, though, but instead uses `/dev/null` to describe this
intention.

So let's side-step the validation _specifically_ in the case that we
want to write to (or read from) `/dev/null`, via a dedicated short-cut
in the code that skips the call to `validate_win32_path()`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-12-21 16:09:06 -08:00
..
2019-07-11 15:16:49 -07:00
2019-10-06 09:07:44 +09:00
2019-12-06 16:31:39 +01:00
2019-12-06 16:31:39 +01:00
2010-11-23 16:06:50 -08:00
2019-06-25 10:46:57 -07:00
2019-06-20 14:03:05 -07:00
2017-01-23 11:02:34 -08:00