summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/edit.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-28 20:31:08 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-28 20:31:08 +0000
commitbf7135c7ea4db345cb2522857eb152e8ab13c639 (patch)
tree5ad7d2fdf7e2fe4a6817a4bee5a19030a725bd5f /usr.bin/cvs/edit.c
parent70ece8be1d4df61fee1848497ed18b744905a684 (diff)
Properly handle -R -- although it is default, it may be overwritten mit -l
in front of it. OK joris@, xsa@ > Diff from Igor Zinovik
Diffstat (limited to 'usr.bin/cvs/edit.c')
-rw-r--r--usr.bin/cvs/edit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/edit.c b/usr.bin/cvs/edit.c
index 2a95b57703a..2eff2d8af25 100644
--- a/usr.bin/cvs/edit.c
+++ b/usr.bin/cvs/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.40 2008/01/10 10:08:22 tobias Exp $ */
+/* $OpenBSD: edit.c,v 1.41 2008/01/28 20:31:07 tobias Exp $ */
/*
* Copyright (c) 2006, 2007 Xavier Santolaria <xsa@openbsd.org>
*
@@ -100,6 +100,7 @@ cvs_edit(int argc, char **argv)
flags &= ~CR_RECURSE_DIRS;
break;
case 'R':
+ flags |= CR_RECURSE_DIRS;
break;
default:
fatal("%s", cvs_cmd_edit.cmd_synopsis);
@@ -157,6 +158,7 @@ cvs_editors(int argc, char **argv)
flags &= ~CR_RECURSE_DIRS;
break;
case 'R':
+ flags |= CR_RECURSE_DIRS;
break;
default:
fatal("%s", cvs_cmd_editors.cmd_synopsis);
@@ -211,6 +213,7 @@ cvs_unedit(int argc, char **argv)
flags &= ~CR_RECURSE_DIRS;
break;
case 'R':
+ flags |= CR_RECURSE_DIRS;
break;
default:
fatal("%s", cvs_cmd_unedit.cmd_synopsis);