diff options
author | 2018-06-22 15:37:15 +0000 | |
---|---|---|
committer | 2018-06-22 15:37:15 +0000 | |
commit | f5591223bf9fae9c752da4e8be1f2709ee33db98 (patch) | |
tree | 6754a5ef8726b39bbaf6905a7a0fda113999950d /usr.bin/patch/patch.c | |
parent | Update the pointer to the trapframe in the PCB when handling an AST. (diff) | |
download | wireguard-openbsd-f5591223bf9fae9c752da4e8be1f2709ee33db98.tar.xz wireguard-openbsd-f5591223bf9fae9c752da4e8be1f2709ee33db98.zip |
Add --dry-run as synonym to -C/--check.
FreeBSD and NetBSD has this for a while, and GNU patch got it even earlier
than we got -C.
input from sthen@ & jca@; okay sthen@, jca@ and deraadt@.
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r-- | usr.bin/patch/patch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index b0627c89b86..0cb924db733 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.65 2018/04/07 14:55:13 anton Exp $ */ +/* $OpenBSD: patch.c,v 1.66 2018/06/22 15:37:15 zhuk Exp $ */ /* * patch - a program to apply diffs to original files @@ -454,6 +454,7 @@ get_some_switches(void) {"context", no_argument, 0, 'c'}, {"debug", required_argument, 0, 'x'}, {"directory", required_argument, 0, 'd'}, + {"dry-run", no_argument, 0, 'C'}, {"ed", no_argument, 0, 'e'}, {"force", no_argument, 0, 'f'}, {"forward", no_argument, 0, 'N'}, |