]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol.
authorFrederic Cambus <fred@statdns.com>
Tue, 5 Dec 2023 11:23:07 +0000 (12:23 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 12 Jan 2024 14:21:26 +0000 (15:21 +0100)
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>
debug/getwd_chk.c

index dadbb3d8659eca70b550b68063f6592fff99cf86..af19f782aa6564e52186f257e77dd7cbb2bc8762 100644 (file)
@@ -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.")