kpatch-build: fix missed parameter of verify_patch_files

Verify_patch_files() use `lsdiff` to get patches' path and verify
they are supported. To be consistent with apply_patches() which
using `patch -p1`, `lsdiff` should use '--strip=1' paremeter.

Close: #1357

Signed-off-by: Kai Zhang <zhangkai@iscas.ac.cn>
This commit is contained in:
laokz 2023-08-28 22:10:02 +08:00 committed by laokz
parent f594a5c3ea
commit 671fe2ce01

View File

@ -119,7 +119,7 @@ verify_patch_files() {
local ret=0
for patch in "${PATCH_LIST[@]}"; do
for path in $(lsdiff "$patch" 2>/dev/null); do
for path in $(lsdiff --strip=1 "$patch" 2>/dev/null); do
dir=$(dirname "$path")
ext="${path##*.}"