freebsd-ports/devel/cvs-devel/files/patch-fix_-l
Edwin Groothuis dc2ba353b6 [new port] devel/cvs-devel 1.12.13_8
Latest upstream/feature release, similar to Debian, see the
        ChangeLog excerpts available at
        http://cto.homelinux.net/usr/ports/devel/cvs-devel/ChangeLog page.

        This feature release/version, I think, would be quite useful
        for all those users who want to share and, or transfer their
        existing CVS repositories from Linux to FreeBSD machines.

PR:             ports/118033
Submitted by:   Balwinder S Dheeman <bdheeman@gmail.com>
2008-05-26 04:58:42 +00:00

26 lines
981 B
Text

# Re-added -l option to the client. Does nothing, but stops
# warnings/errors. Will really fix #219950 and #224737, and also a
# differently-described bug (220379). Closes: #219950, #220379
#
# Patch by Steve McIntyre <steve@einval.com>
diff -Nur src/main.c src/main.c
--- src/main.c 2006-02-26 22:09:42.000000000 +0800
+++ src/main.c 2006-02-26 22:09:43.000000000 +0800
@@ -511,7 +511,7 @@
int help = 0; /* Has the user asked for help? This
lets us support the `cvs -H cmd'
convention to give help for cmd. */
- static const char short_options[] = "+QqrwtnRvb:T:e:d:Hfz:s:xa";
+ static const char short_options[] = "+QqrwtnRvb:T:e:d:Hfz:s:xal";
static struct option long_options[] =
{
{"help", 0, NULL, 'H'},
@@ -669,6 +669,8 @@
noexec = 1;
logoff = 1;
break;
+ case 'l': /* no-op to simply ignore the old -l option */
+ break;
case 'v':
(void) fputs ("\n", stdout);
version (0, NULL);