Skip to content

Commit

Permalink
patch -F0 should disable fuzz support.
Browse files Browse the repository at this point in the history
  • Loading branch information
landley committed Dec 7, 2024
1 parent 46e22bc commit b1f23f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toys/posix/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ static int apply_one_hunk(void)
}
}
matcheof = !trail || trail < TT.context;
if (FLAG(F) && !TT.F) fuzz = 0;
if (fuzz>1) allfuzz = TT.F ? : TT.context ? TT.context-1 : 0;

// Loop through input data searching for this hunk. Match all context
Expand Down

0 comments on commit b1f23f3

Please sign in to comment.