mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
UnixFileSystem's override of MaxDirectoryName was assuming the property meant the maximum size of the file name of a directory, i.e. the component length, not the full path length of everything from the beginning of the root. As a result, checks against MaxDirectoryName, such as in CreateDirectory, were failing incorrectly with longer path lengths. The fix is just to return MaxPath from MaxDirectoryName; there's no difference on Unix. I also added a test to cover this case, included a previously excluded test, and deleted a faulty test. Commit migrated from https://github.com/dotnet/corefx/commit/5de40bfa898dc2a03fd5efb3f21ea2f69d16a94a