-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: detection of changed files that might cause failure on some paths
By using `-z` option of `git diff` we can get the file paths without extra spaces, newlines and quotes. Previously this caused issues like: ```sh + head -n1 '"test/fuzz/fuzz-unit-file/dm-back\\x2dslash.swap"' head: cannot open '"test/fuzz/fuzz-unit-file/dm-back\\x2dslash.swap"' for reading: No such file or directory ```
- Loading branch information
Showing
8 changed files
with
34 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
test/fixtures/get_scripts_for_scanning/dm-back\x2dslash.swap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
swap | ||
[Unit] | ||
SourcePath=/etc/fstab | ||
Documentation=man:fstab(5) man:systemd-fstab-generator(8) | ||
|
||
[Swap] | ||
What=/dev/mapper/fedora_krowka-swap | ||
Options=defaults,x-systemd.device-timeout=0 | ||
Priority=11 | ||
TimeoutSec=123h 5min 2y |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters