mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
tool_dirhie: fix to create drive-relative directory
Fix to create the top directory `foo` when specified as
`X:foo\bar\filename`, on Windows and MS-DOS. Add test to verify.
Caught by Codex Security
Follow-up to 787ee935ac #16566
Closes #21449
This commit is contained in:
parent
e2f84e6ba9
commit
13b6a6036c
6 changed files with 133 additions and 7 deletions
24
tests/data/test1720
Normal file
24
tests/data/test1720
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="US-ASCII"?>
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
unittest
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
unittest
|
||||
</features>
|
||||
<name>
|
||||
create_dir_hierarchy()
|
||||
</name>
|
||||
<tool>
|
||||
tool%TESTNUMBER
|
||||
</tool>
|
||||
</client>
|
||||
|
||||
<verify>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue