about summary refs log tree commit diff
path: root/debug
diff options
context:
space:
mode:
authorFrederic Cambus <fred@statdns.com>2023-12-05 12:23:07 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-01-12 15:21:26 +0100
commit9fd2ceb55de003c09c909103966db913319bcfdc (patch)
tree4310ff619fac38afdb32ec78d9e10a8d60dcf0e6 /debug
parent5a85786a9005722be7cb9e70f8874a5f1130daea (diff)
downloadglibc-9fd2ceb55de003c09c909103966db913319bcfdc.tar.gz
glibc-9fd2ceb55de003c09c909103966db913319bcfdc.tar.xz
glibc-9fd2ceb55de003c09c909103966db913319bcfdc.zip
debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol.
Otherwise the warning message for the getwd symbol ends up being duplicated.

Signed-off-by: Frederic Cambus <fred@statdns.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'debug')
-rw-r--r--debug/getwd_chk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c
index dadbb3d865..af19f782aa 100644
--- a/debug/getwd_chk.c
+++ b/debug/getwd_chk.c
@@ -29,5 +29,5 @@ __getwd_chk (char *buf, size_t buflen)
   return res;
 }
 
-link_warning (getwd,
+link_warning (__getwd_chk,
 	      "the `getwd' function is dangerous and should not be used.")