Skip to content

Commit

Permalink
Merge pull request #11794 from nix-windows/windows-functional/nul-cha…
Browse files Browse the repository at this point in the history
…racter

Rename nul.nar because nul is a special name in Windows
  • Loading branch information
Ericson2314 authored Nov 4, 2024
2 parents 915cbe6 + 190d0d6 commit 30f4f21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/nars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ rm -f "$TEST_ROOT/unicode-*"

# Unpacking a NAR with a NUL character in a file name should fail.
rm -rf "$TEST_ROOT/out"
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < nul.nar | grepQuiet "NAR contains invalid file name 'f"
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < nul-character.nar | grepQuiet "NAR contains invalid file name 'f"

# Likewise for a '.' filename.
rm -rf "$TEST_ROOT/out"
Expand Down
File renamed without changes.

0 comments on commit 30f4f21

Please sign in to comment.