public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol.
@ 2023-12-05 11:23 Frederic Cambus
  2024-01-08 14:28 ` Frederic Cambus
  2024-01-08 14:32 ` Adhemerval Zanella Netto
  0 siblings, 2 replies; 4+ messages in thread
From: Frederic Cambus @ 2023-12-05 11:23 UTC (permalink / raw)
  To: libc-alpha

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-11 21:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05 11:23 [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol Frederic Cambus
2024-01-08 14:28 ` Frederic Cambus
2024-01-08 14:32 ` Adhemerval Zanella Netto
2024-01-11 21:34   ` Andreas K. Huettel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).