From: Frederic Cambus Date: Tue, 5 Dec 2023 11:23:07 +0000 (+0100) Subject: debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol. X-Git-Tag: glibc-2.39~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fd2ceb55de003c09c909103966db913319bcfdc;p=thirdparty%2Fglibc.git 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 Reviewed-by: Adhemerval Zanella Signed-off-by: Andreas K. Hüttel --- diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c index dadbb3d8659..af19f782aa6 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.")