]> Zhao Yanbai Git Server - minix.git/commitdiff
getdirs.awk: restore regexp to original
authorBen Gras <ben@minix3.org>
Sun, 24 Feb 2013 12:50:53 +0000 (13:50 +0100)
committerBen Gras <ben@minix3.org>
Sun, 24 Feb 2013 12:50:53 +0000 (13:50 +0100)
Change-Id: I7f9714e1b0e079299c87b036dea8e91ffc701342

distrib/sets/getdirs.awk

index fa84a723be35a0db0524ec9f541d1305c0fba275..f82e6a2a6a90a4ffc663daf15316fe8376809896 100644 (file)
@@ -32,7 +32,7 @@
 function dirname(file) \
 {
        # no need to worry about args that do not contain at least one "/"
-       gsub(/\/[^\/]*+/, "", file)
+       gsub(/\/[^\/]+$/, "", file)
        return file
 }