summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2006-07-02 21:11:54 +0000
committerreyk <reyk@openbsd.org>2006-07-02 21:11:54 +0000
commit61c65abbc806758ec42de95b5e5b21a44404565c (patch)
tree5df152d403d11587cf9b34d95e230b6d65a37f7b
parent- abort the commit when files are not correctly up to date. (diff)
downloadwireguard-openbsd-61c65abbc806758ec42de95b5e5b21a44404565c.tar.xz
wireguard-openbsd-61c65abbc806758ec42de95b5e5b21a44404565c.zip
for cvs tag, tag all files in the local directory if no file argument
is given. ok joris@
-rw-r--r--usr.bin/cvs/tag.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/cvs/tag.c b/usr.bin/cvs/tag.c
index a9d9349c065..a8a6e8319b9 100644
--- a/usr.bin/cvs/tag.c
+++ b/usr.bin/cvs/tag.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tag.c,v 1.48 2006/06/19 05:05:17 joris Exp $ */
+/* $OpenBSD: tag.c,v 1.49 2006/07/02 21:11:54 reyk Exp $ */
/*
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
*
@@ -47,6 +47,7 @@ int
cvs_tag(int argc, char **argv)
{
int ch, flags;
+ char *arg = ".";
struct cvs_recursion cr;
flags = CR_RECURSE_DIRS;
@@ -111,7 +112,10 @@ cvs_tag(int argc, char **argv)
cr.fileproc = cvs_tag_local;
cr.flags = flags;
- cvs_file_run(argc, argv, &cr);
+ if (argc > 0)
+ cvs_file_run(argc, argv, &cr);
+ else
+ cvs_file_run(1, &arg, &cr);
return (0);
}