Skip to content

fix(libkernel): report lookup errors when creating through a trailing slash - #10319

Merged
oneandonlydean merged 4 commits into
boykopovar:mainfrom
MarrasFederico:fix/open-create-trailing-slash
Nov 2, 2026
Merged

oneandonlydean merged 4 commits into
boykopovar:mainfrom
MarrasFederico:fix/open-create-trailing-slash

Conversation

@MarrasFederico

@MarrasFederico MarrasFederico commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

open and sceKernelOpen with O_CREAT on a missing final name followed by / reported the host error (EISDIR on Linux; the existing debt records EINVAL on Windows). FreeBSD 11.4 lookup rejects this case with ENOENT, because only a directory can be created through a trailing slash.

After a native open fails with EISDIR or EINVAL, a trailing-separator creation request now checks the path's status. A missing path reports guest ENOENT; metadata errors are mapped explicitly, including ELOOP. Other requests and existing directories keep their original result. This applies to ordinary and aliased guest paths, with both plain and exclusive creation covered. Failed requests create no file. The resolved debt item is removed; a concise replacement records the non-atomic host lookup/open sequence and that this has not been measured on a PS5.

#8544, which edited the neighbouring fcntl debt line, is merged, and the branch is rebased onto current main as one commit. #8658 adds a macOS existing-directory check at the native-open call; this correction is placed after the Windows directory fallback to avoid the insertion conflict.

Tested

Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, BUILD_TESTING=ON. Windows was not compiled here; BunnyFl's Windows run is below. No title was run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4630 docs/dev/debt/libkernel.md
PR 5021 core/libs/prx/libkernel/File/src/Open.cpp
docs/dev/debt/libkernel.md
PR 6740 docs/dev/debt/libkernel.md
PR 6936 core/libs/prx/libkernel/File/src/Open.cpp
docs/dev/debt/libkernel.md
PR 7088 docs/dev/debt/libkernel.md
PR 7105 docs/dev/debt/libkernel.md
PR 7121 core/libs/prx/libkernel/File/src/Open.cpp
docs/dev/debt/libkernel.md
PR 7135 docs/dev/debt/libkernel.md
PR 7149 docs/dev/debt/libkernel.md
PR 7447 docs/dev/debt/libkernel.md
PR 7804 docs/dev/debt/libkernel.md
PR 9156 docs/dev/debt/libkernel.md
PR 9199 docs/dev/debt/libkernel.md
PR 9293 docs/dev/debt/libkernel.md
PR 9297 docs/dev/debt/libkernel.md
PR 9302 docs/dev/debt/libkernel.md
PR 9371 core/libs/tests/GuestFilesystem.cpp
PR 9389 docs/dev/debt/libkernel.md
PR 9557 docs/dev/debt/libkernel.md
PR 9566 docs/dev/debt/libkernel.md
PR 9938 docs/dev/debt/libkernel.md
PR 10025 docs/dev/debt/libkernel.md
PR 10442 docs/dev/debt/libkernel.md
PR 11831 core/libs/prx/libkernel/File/src/Open.cpp
PR 11896 docs/dev/debt/libkernel.md
PR 11939 docs/dev/debt/libkernel.md
PR 12104 docs/dev/debt/libkernel.md
PR 12970 docs/dev/debt/libkernel.md
PR 13486 docs/dev/debt/libkernel.md
PR 13560 docs/dev/debt/libkernel.md
PR 14103 docs/dev/debt/libkernel.md
PR 14128 docs/dev/debt/libkernel.md
PR 14212 docs/dev/debt/libkernel.md
PR 14832 docs/dev/debt/libkernel.md
PR 14854 docs/dev/debt/libkernel.md
PR 14886 docs/dev/debt/libkernel.md
PR 14894 docs/dev/debt/libkernel.md
PR 15035 docs/dev/debt/libkernel.md

@oneandonlydean oneandonlydean self-assigned this Oct 23, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 23, 2026

@harisibrar1 harisibrar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked against main 11d6efa and FreeBSD 11.4 lookup() (vfs_lookup.c, the TRAILINGSLASH/WILLBEDIR → ENOENT block and the TRAILINGSLASH on a non-directory → ENOTDIR block):

  • The behaviour matches lookup(): a missing final name with a trailing slash gives ENOENT, existing directories keep EISDIR/EEXIST, and an existing file with a trailing slash still takes the host's ENOTDIR path. Open.cpp is unchanged on main since your base, so the fix is still needed.
  • git merge-tree against current main now conflicts in docs/dev/debt/libkernel.md, where main rewrote the neighbouring fcntl line. #8544 is already merged (85f2f2d), so the declared merge order is satisfied and only a rebase is needed.
  • The new /parent-test-mount/missing-create/ check in GuestFilesystem.cpp also runs on Windows, and the PR says Windows wasn't compiled. A Windows CI or local run of guest_filesystem would confirm that _wopen's EINVAL is corrected there as intended; I couldn't run it myself.

Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 24, 2026
@MarrasFederico

Copy link
Copy Markdown
Contributor Author

@harisibrar1 thanks for the review.

  • Conflict: resolved in a42c741, merged on top of @oneandonlydean's merge of main. The resolution keeps main's rewritten fcntl line and drops the trailing-slash entry this PR resolves. fix(libkernel): report O_RDWR from F_GETFL on both ends of a pipe #8544 is merged, so the description now says Depends on: none. The tree matches a rebase I built and tested on current main: the 10 guest_(path|filesystem|app_archive) tests pass, and conventions pass.

  • Windows: I can't compile it here either. Reading OpenNative, both host answers end at ENOENT:

    • If _wopen fails with EINVAL, the Windows directory fallback finds no directory at missing-create and restores EINVAL. The new check then sees no file there and reports ENOENT.
    • If _wopen reports ENOENT itself, the check is skipped and the existing not-found path returns ENOENT.

    A Windows CI run of guest_filesystem and guest_path_errors would confirm this.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 24, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Linux tests exercise the missing-name, exclusive-create, no-file-created, and symlink-loop cases, and the lookup correction is appropriately limited to O_CREAT after EISDIR/EINVAL. Two integration checks remain before approval:

  • Rebase onto current main, as required by CONTRIBUTING.md. This branch is based on aeeaefa, 6,761 commits behind current main; the nearby fcntl debt history and the existing GuestFilesystem test code have since moved.
  • Please run guest_filesystem and guest_path_errors on Windows. The change specifically maps Windows _wopen's EINVAL, but Windows was not compiled for the reported runs and the hosted Windows product job is skipped for this path. Confirm both aliased and plain paths, including the symlink-loop case where the platform permits it, on the rebased head.

@BunnyFl

BunnyFl commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Windows run for this PR, as asked in the last review.

Build: head a42c741b2d merged onto current main c8d34aa8f4 with --no-ff (5329f48584, no conflicts; the head is 649 commits behind main, so this stands in for the rebased head). Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON. Three runs per variant.

guest_path_errors can't run on Windows: core/libs/prx/libkernel/CMakeLists.txt adds it only under if(UNIX) (it uses ::symlink). So on Windows, guest_filesystem covers only the aliased case. For the plain-path cases I added a local-only probe (not pushed) that calls sceKernelOpen and open on each path and prints the result.

guest_filesystem:

variant result
main + only this PR's test lines fails 3 of 3 at line 252, the new aliased sceKernelOpen(..., O_WRONLY | O_CREAT) check (guest errno 22)
main + this PR passes 3 of 3

Probe (identical in all three runs of each variant):

path, flags main main + this PR
missing-create/, O_CREAT 0x80020016, errno 22 0x80020002, errno 2
missing-excl/, O_CREAT | O_EXCL 0x80020016, errno 22 0x80020002, errno 2
/probe-mount/missing-alias/, O_CREAT 0x80020016, errno 22 0x80020002, errno 2
/probe-mount/missing-alias-excl/, O_CREAT | O_EXCL 0x80020016, errno 22 0x80020002, errno 2
missing-ro/, O_RDONLY 0x80020002, errno 2 same
missing-parent/x/, O_CREAT 0x80020002, errno 2 same
Existing/ (directory), O_CREAT 0x80020015, errno 21 same
Existing/ (directory), O_CREAT | O_EXCL 0x80020011, errno 17 same
present.txt/ (file), O_CREAT 0x80020014, errno 20 same

No file was created by any of these calls. So on Windows, _wopen's EINVAL becomes ENOENT for plain and aliased paths, with and without O_EXCL; existing directories, an existing file and non-create opens keep main's result.

Not tested: the symlink-loop case. This account can't create symlinks (no Developer Mode or admin rights; mklink reports insufficient privilege, and MinGW's std::filesystem::create_symlink returns "Function not implemented").

@MarrasFederico
MarrasFederico force-pushed the fix/open-create-trailing-slash branch from a42c741 to b919ecf Compare October 25, 2026 08:38
@MarrasFederico

Copy link
Copy Markdown
Contributor Author

@MarcZX10 thanks. Rebased onto current main as a single commit, b919ecf. The earlier merge commits are gone, and the conflict in docs/dev/debt/libkernel.md keeps main's fcntl text. On the rebased head the full build succeeds, the 10 guest_(path|filesystem|app_archive) tests pass, and conventions pass. With main's Open.cpp, guest_path_errors and guest_filesystem fail.

On Windows, @BunnyFl's run above covers what you asked, on this change merged onto a recent main:

  • guest_filesystem passes, and fails at the new aliased check without the fix.
  • The probe gives ENOENT for the plain and aliased missing names, with and without O_EXCL, and creates no file.
  • Existing directories, an existing file and non-create opens keep main's results.

Two parts could not be run on Windows. guest_path_errors is built only on Unix (it uses ::symlink). The symlink-loop case needs symlink rights that the tester's account does not have. I can't build Windows here, so I've added this to the description instead of claiming more. @BunnyFl thanks for the thorough run.

@orezraey

Copy link
Copy Markdown
Contributor

@MarrasFederico #11135 edits the sceKernelFcntl and fcntl entries on either side of the trailing-slash entry this PR rewrites in docs/dev/debt/libkernel.md, so git may report a conflict there. Whichever merges second keeps both changes; I'll rebase #11135 if this one lands first.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 26, 2026
@MarrasFederico
MarrasFederico force-pushed the fix/open-create-trailing-slash branch from b919ecf to 7b0f1b6 Compare October 26, 2026 12:39
@MarrasFederico

Copy link
Copy Markdown
Contributor Author

@orezraey thanks for the heads-up, agreed. Whichever lands second keeps both changes. I've just rebased this one onto current main (7b0f1b6) to clear the new conflict in docs/dev/debt/libkernel.md, so the overlap with #11135 is only those neighbouring entries. On the rebased head the 10 guest_(path|filesystem|app_archive) tests pass.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 26, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@MarrasFederico merged main into your branch to resolve the conflict in docs/dev/debt/libkernel.md; no other changes. Please pull before your next push.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 29, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the updated head 182c8be21791edf8acac4dcb0868163e6eeb54a4. It now includes current base 10bec5c322eb581b3e959e6c7e18bcf09e068e96, resolving the requested rebase/conflict. The Windows workflow passes on this exact head; the earlier Linux build and focused guest path/filesystem/archive tests passed on the immediately preceding rebased tree, and the latest merge is reported as main plus the debt-file conflict resolution. The Windows report also covers plain and aliased missing paths, both create modes, no-file-created behavior, and unchanged existing-path behavior. guest_path_errors and the symlink-loop case were not run on Windows because the target requires Unix symlinks. I did not rerun Linux locally on the final merge commit.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 31, 2026
@TechLevelZero

TechLevelZero commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 833af84 merged onto main 291e02d · tested 2026-11-01 18:05 UTC · 10 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,473 passed · 12 failed (0 new, 11 also fail on main, 1 unstable on main) · 55 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,540 of 3,155 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (1011 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.0 s, ⚠️ agc_driver_graphics_maps_fallback 59.8 s, ⚠️ agc_driver_graphics 59.5 s, ⚠️ unwrap_self 41.5 s, ⚠️ public_headers 34.1 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 3 of the last 4 main runs
Failing on main too (11, not counted against this PR)
agc_driver_guest_memory_lifetime_direct
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_depth_buffer_clear
agc_driver_native_depth_clears
agc_driver_native_multisample_depth
agc_idle_publish_wait
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (5 IDs in 552 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (552 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 544 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth, agc_driver_stencil_null_feedback
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth, agc_driver_stencil_null_feedback
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (55)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vu
Reproduce
git fetch origin 833af84aec804140eb2577a3aa3ad1dfb6320864 291e02d4877784d03d346962af51713b9df63b91
git checkout 291e02d4877784d03d346962af51713b9df63b91 && git merge --no-ff 833af84aec804140eb2577a3aa3ad1dfb6320864
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 2, 2026
@oneandonlydean
oneandonlydean merged commit 99e5659 into boykopovar:main Nov 2, 2026
12 checks passed
oneandonlydean pushed a commit that referenced this pull request Nov 7, 2026
…e CreateFileW on Windows

On Windows 11 build 26300, CreateFileW with OPEN_ALWAYS, CREATE_NEW or
CREATE_ALWAYS on a path ending in a separator creates a regular file
for a missing name and opens an existing file, also in the \?\ form.
Windows Server 2025 (26100) and Windows 11 26200 return
ERROR_INVALID_NAME there, which the correction from #10319 turns into
ENOENT. On 26300, open and sceKernelOpen with O_CREAT on "missing/"
returned a descriptor and left a file named "missing", and
guest_filesystem failed on every run.

The Windows open now looks up a creating path that ends in a separator
before CreateFileW: a missing name takes the not-found path (ENOENT, or
ENOTDIR below a file), a name that is not a directory fails with
ENOTDIR, as FreeBSD 11.4's lookup does, and only a directory reaches
CreateFileW. guest_filesystem checks O_CREAT, O_CREAT | O_EXCL and
O_CREAT | O_TRUNC through an alias, a guest path and, on Windows, a
native drive path, which skips the resolver's non-directory check.
Pipodi pushed a commit to Pipodi/AnyPS5 that referenced this pull request Nov 14, 2026
…e CreateFileW on Windows

On Windows 11 build 26300, CreateFileW with OPEN_ALWAYS, CREATE_NEW or
CREATE_ALWAYS on a path ending in a separator creates a regular file
for a missing name and opens an existing file, also in the \?\ form.
Windows Server 2025 (26100) and Windows 11 26200 return
ERROR_INVALID_NAME there, which the correction from boykopovar#10319 turns into
ENOENT. On 26300, open and sceKernelOpen with O_CREAT on "missing/"
returned a descriptor and left a file named "missing", and
guest_filesystem failed on every run.

The Windows open now looks up a creating path that ends in a separator
before CreateFileW: a missing name takes the not-found path (ENOENT, or
ENOTDIR below a file), a name that is not a directory fails with
ENOTDIR, as FreeBSD 11.4's lookup does, and only a directory reaches
CreateFileW. guest_filesystem checks O_CREAT, O_CREAT | O_EXCL and
O_CREAT | O_TRUNC through an alias, a guest path and, on Windows, a
native drive path, which skips the resolver's non-directory check.

(cherry picked from commit 9ec24c5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants