how to patch cpio 2.13+dfsg-2ubuntu0.4
Hi ,
We downloded this path cpio_2.
and we do now know how to execute patch .
We extract the file with `tar': tar -xf cpio_2.
and then change dir to : /root/debian/
and then run this command : patch -p1 < CVE-2023-7207.patch
when run this command ant the first out put i have this error : can't find file to patch at input line 23
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
and question from me File to patch ?
and also here is compelete out put :
can't find file to patch at input line 23
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
-------
|From 376d663340a9dc9
|From: Sergey Poznyakoff <email address hidden>
|Date: Thu, 27 Apr 2023 15:14:23 +0300
|Subject: Fix 45b0ee2b407913c
|
|The commit in question brought in more problems than solutions. To
|properly fix the issue, use symlink placeholders, modelled after
|delayed symlinks in tar.
|
|* src/copyin.c (symlink_
|(replace_
|(copyin_link): Create symlink placeholder if --no-absolute-
|was given.
|(process_copy_in): Replace placeholders after extraction.
|* tests/CVE-
|---
| src/copyin.c | 173 +++++++
| tests/CVE-
| 2 files changed, 153 insertions(+), 27 deletions(-)
|
|--- cpio-2.
|+++ cpio-2.
-------
File to patch:
please command by command send and explain how to run this patch . Thanks .
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu cpio Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alireza Ariyaee
- Solved:
- Last query:
- Last reply: