aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch/backupfile.c
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2015-07-21 22:57:27 +0000
committerConrad Meyer <cem@FreeBSD.org>2015-07-21 22:57:27 +0000
commit300ca9a86e0642c9f9285ace20fbb7f4d2695ba8 (patch)
tree50b34deb0ada9be639c3001fb8ac0499a39695a8 /usr.bin/patch/backupfile.c
parente637a6e3f940ad35e82ea0d8183a677697557802 (diff)
downloadsrc-300ca9a86e0642c9f9285ace20fbb7f4d2695ba8.tar.gz
src-300ca9a86e0642c9f9285ace20fbb7f4d2695ba8.zip
patch(1): Add -Vnone option to disable backup files
Differential Revision: https://reviews.freebsd.org/D3146 Reviewed by: pfg Approved by: markj (mentor) MFC after: 1 week Relnotes: yes Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=285772
Diffstat (limited to 'usr.bin/patch/backupfile.c')
-rw-r--r--usr.bin/patch/backupfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/backupfile.c b/usr.bin/patch/backupfile.c
index d22d607ccc4f..ecdca19e2a71 100644
--- a/usr.bin/patch/backupfile.c
+++ b/usr.bin/patch/backupfile.c
@@ -219,11 +219,11 @@ invalid_arg(const char *kind, const char *value, int problem)
}
static const char *backup_args[] = {
- "never", "simple", "nil", "existing", "t", "numbered", 0
+ "none", "never", "simple", "nil", "existing", "t", "numbered", 0
};
static enum backup_type backup_types[] = {
- simple, simple, numbered_existing,
+ none, simple, simple, numbered_existing,
numbered_existing, numbered, numbered
};