[PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol.

Frederic Cambus fred@statdns.com
Tue Dec 5 11:23:07 GMT 2023


Otherwise the warning message for the getwd symbol ends up being duplicated.

Signed-off-by: Frederic Cambus <fred@statdns.com>
---
 debug/getwd_chk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c
index 850aa1aa14..cf61d8d5a0 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.")
-- 
2.43.0



More information about the Libc-alpha mailing list