Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Error out if a path has consecutive slashes whi...
details: https://anonhg.NetBSD.org/src/rev/a312935db31b
branches: trunk
changeset: 773596:a312935db31b
user: njoly <njoly%NetBSD.org@localhost>
date: Wed Feb 08 16:51:09 2012 +0000
description:
Error out if a path has consecutive slashes which is unsupported and
made awk enter an infinite loop while creating set lists.
diffstat:
distrib/sets/getdirs.awk | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 5352b65d6e6d -r a312935db31b distrib/sets/getdirs.awk
--- a/distrib/sets/getdirs.awk Wed Feb 08 12:22:00 2012 +0000
+++ b/distrib/sets/getdirs.awk Wed Feb 08 16:51:09 2012 +0000
@@ -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 @@
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
#
{
Home |
Main Index |
Thread Index |
Old Index