From f096460edaf2f50dbeadc3dd9e5ef7f9d50e3792 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 11 Sep 2019 04:19:03 -0500 Subject: Add NOP -f, -g#, and --no-backup-if-mismatch options. (All ignored, because they disable stuff we don't do.) --- toys/posix/patch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'toys') diff --git a/toys/posix/patch.c b/toys/posix/patch.c index 4850d5df..3234a1f0 100644 --- a/toys/posix/patch.c +++ b/toys/posix/patch.c @@ -14,11 +14,10 @@ * -r rejectfile write rejected hunks to this file * * -E remove empty files --remove-empty-files - * -f force (no questions asked) * -F fuzz (number, default 2) * [file] which file to patch -USE_PATCH(NEWTOY(patch, "(dry-run)"USE_TOYBOX_DEBUG("x")"ulp#d:i:Rs(quiet)", TOYFLAG_USR|TOYFLAG_BIN)) +USE_PATCH(NEWTOY(patch, "(no-backup-if-mismatch)(dry-run)"USE_TOYBOX_DEBUG("x")"g#fulp#d:i:Rs(quiet)", TOYFLAG_USR|TOYFLAG_BIN)) config PATCH bool "patch" @@ -50,7 +49,7 @@ config PATCH GLOBALS( char *i, *d; - long p; + long p, g; struct double_list *current_hunk; long oldline, oldlen, newline, newlen; -- cgit v1.2.3