mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 18:41:17 +02:00
22 lines
607 B
Plaintext
22 lines
607 B
Plaintext
#
|
|
# 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"))
|