summaryrefslogtreecommitdiff
path: root/devel/cvs-devel/files/patch-check_method_crash
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-05-26 04:58:42 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-05-26 04:58:42 +0000
commitdc2ba353b6add779ef99cc375db07c0773652c68 (patch)
treefd297e003671dbe92e5220abe24b60c1a724b78e /devel/cvs-devel/files/patch-check_method_crash
parent[new port] devel/cvs-devel 1.12.13_8 (diff)
[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>
Notes
Notes: svn path=/head/; revision=213677
Diffstat (limited to 'devel/cvs-devel/files/patch-check_method_crash')
-rw-r--r--devel/cvs-devel/files/patch-check_method_crash21
1 files changed, 21 insertions, 0 deletions
diff --git a/devel/cvs-devel/files/patch-check_method_crash b/devel/cvs-devel/files/patch-check_method_crash
new file mode 100644
index 000000000000..a7524301928f
--- /dev/null
+++ b/devel/cvs-devel/files/patch-check_method_crash
@@ -0,0 +1,21 @@
+#
+# Do a basic sanity check on the method in the CVSROOT - don't crash
+# if one is not specified! Bug#274020
+#
+# Patch from Steve McIntyre <steve@einval.com>
+diff -Nur src/root.c src/root.c
+--- src/root.c 2005-09-25 08:38:29.000000000 +0800
++++ src/root.c 2006-02-26 17:48:32.000000000 +0800
+@@ -535,6 +535,12 @@
+ method = "";
+ #endif /* defined (CLIENT_SUPPORT) || defined (SERVER_SUPPORT) */
+
++ if (NULL == method)
++ {
++ error (0, 0, "Missing method in CVSROOT.");
++ goto error_exit;
++ }
++
+ /* Now we have an access method -- see if it's valid. */
+
+ if (!strcasecmp (method, "local"))