Module Name:    src
Committed By:   njoly
Date:           Wed Feb  8 16:51:09 UTC 2012

Modified Files:
        src/distrib/sets: getdirs.awk

Log Message:
Error out if a path has consecutive slashes which is unsupported and
made awk enter an infinite loop while creating set lists.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/getdirs.awk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/getdirs.awk
diff -u src/distrib/sets/getdirs.awk:1.4 src/distrib/sets/getdirs.awk:1.5
--- src/distrib/sets/getdirs.awk:1.4	Wed Apr 30 13:10:49 2008
+++ src/distrib/sets/getdirs.awk	Wed Feb  8 16:51:09 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: getdirs.awk,v 1.4 2008/04/30 13:10:49 martin Exp $
+#	$NetBSD: getdirs.awk,v 1.5 2012/02/08 16:51:09 njoly Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -50,6 +50,15 @@ function dirname(file) \
 	next
 }
 
+#	error if consecutive slashes are found
+#
+/\/\// \
+{
+	print "Unsupported consecutive slashes in path:" >"/dev/stderr"
+	print >"/dev/stderr"
+	exit 1
+}
+
 #	all other lines are parsed 
 #
 {

Reply via email to