[PATCH] patch: -d/--directory cmdline argument
Tyrell Keene
tyrell.wkeene.lkml at gmail.com
Sat Nov 2 03:10:51 UTC 2024
Hello people,
This patch adds the -d/--directory argument to the patch applet. Pretty
straight-forward, just switches to the provided directory before the
main patch loop using the pre-existing chdir_or_warn() and
_exit_FAILURE() if it doesnt work out.
As far as I can see, this mirrors the basic functionality of the gnu
patch implementation: https://git.savannah.gnu.org/cgit/patch.git/tree/src/patch.c#n945
This is my first patch to the project, so have at me, want to improve.
Cheers!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-chdir.patch
Type: text/x-diff
Size: 2820 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20241102/b1b0f7a8/attachment.bin>
More information about the busybox
mailing list