Skip to content

Commit

Permalink
kpatch-build: fix missed parameter of verify_patch_files
Browse files Browse the repository at this point in the history
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: dynup#1357

Signed-off-by: Kai Zhang <[email protected]>
  • Loading branch information
laokz authored and laokz committed Aug 28, 2023
1 parent f594a5c commit 671fe2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpatch-build/kpatch-build
Original file line number Diff line number Diff line change
Expand Up @@ -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##*.}"
Expand Down

0 comments on commit 671fe2c

Please sign in to comment.