[PATCH 1/2] Revert "Support deeper version numbers (e.g. 2.0.4.x)"

Kris Van Hees <[email protected]> Tue, 27 Jan 2026 11:49:54 -0500
Newsgroups dev.linux.lists.dtrace
Message-ID <DS0PR10MB75229AC7BDFA45F9DC19A2C3C290A@DS0PR10MB7522.namprd10.prod.outlook.com>
This reverts commit 1898d098a582488c9de485a9b672f6b2929335ba.

The DTrace version numbering scheme only supports up to 3 digits in the
version number, and expanding this to 4 digits would require quite a lot
more changes.
---
 libdtrace/mkvers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libdtrace/mkvers b/libdtrace/mkvers
index 087c0916..6f924032 100755
--- a/libdtrace/mkvers
+++ b/libdtrace/mkvers
@@ -10,7 +10,7 @@
 NF == 0 { next; }
 
 {
-	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,3}$/) == 0) {
+	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,2}$/) == 0) {
 		print "E: Invalid version string: " $1 >"/dev/stderr";
 		exit 1
 	}
-- 
2.51.0