27 lines
785 B
Text
27 lines
785 B
Text
|
$NetBSD: patch-ad,v 1.1 2009/08/30 17:16:54 schmonz Exp $
|
||
|
|
||
|
--- cap.c.orig 2005-05-25 23:39:40.000000000 -0400
|
||
|
+++ cap.c
|
||
|
@@ -121,11 +121,19 @@ int check_version_string(const char * st
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+ /* We might have encountered a FreeBSD system which
|
||
|
+ * has a mucked up version string of:
|
||
|
+ * Concurrent Versions System (CVS) '1.11.17'-FreeBSD (client/server)
|
||
|
+ * so re-test just in case
|
||
|
+ */
|
||
|
p += skip;
|
||
|
if (sscanf(p, "%d.%d.%d", &major, &minor, &extra) != 3)
|
||
|
{
|
||
|
- debug(DEBUG_APPMSG1, "WARNING: malformed CVS version: %s", str);
|
||
|
- return 0;
|
||
|
+ if (sscanf(p, "'%d.%d.%d'", &major, &minor, &extra) != 3)
|
||
|
+ {
|
||
|
+ debug(DEBUG_APPMSG1, "WARNING: malformed CVS version: %s", str);
|
||
|
+ return 0;
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
return (major > req_major ||
|