about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-06 04:14:56 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-09 04:19:17 -0400
commitd6d20de8b7ff6da6f3d29c5edb0ae3070f997f30 (patch)
tree180507c9f03b0eb48e852f08826743a6d31b5e80 /nptl
parent2c61c19f80e21743ef36bc53597ba893d4836dfc (diff)
downloadglibc-d6d20de8b7ff6da6f3d29c5edb0ae3070f997f30.tar.gz
glibc-d6d20de8b7ff6da6f3d29c5edb0ae3070f997f30.tar.xz
glibc-d6d20de8b7ff6da6f3d29c5edb0ae3070f997f30.zip
gawk: fix gensub usage
The third arg can either be a string with "g" or "G", or it is a number.
The empty string elicits a warning with newer versions like so:
gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1
Diffstat (limited to 'nptl')
-rw-r--r--nptl/tst-cancel-wrappers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/tst-cancel-wrappers.sh b/nptl/tst-cancel-wrappers.sh
index b2d8302654..d492a541d3 100644
--- a/nptl/tst-cancel-wrappers.sh
+++ b/nptl/tst-cancel-wrappers.sh
@@ -74,7 +74,7 @@ C["__xpg_sigpause"]=1
   seen=""
   seen_enable=""
   seen_disable=""
-  object=gensub(/^.*\[(.*)\]:$/,"\\1","",$0)
+  object=gensub(/^.*\[(.*)\]:$/, "\\1", 1, $0)
   next
 }
 {