about summary refs log tree commit diff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-08-14 10:52:06 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-08-14 10:52:06 +0200
commite95c6f61920a0f9237cfb292fa44ad500e1df09b (patch)
tree5e0b22cbbb895a01a8a92741929be1051d752c95 /nss/Makefile
parent2d7acfac3ebf266dcbc82d0d6cc576f626953a03 (diff)
downloadglibc-e95c6f61920a0f9237cfb292fa44ad500e1df09b.tar.gz
glibc-e95c6f61920a0f9237cfb292fa44ad500e1df09b.tar.xz
glibc-e95c6f61920a0f9237cfb292fa44ad500e1df09b.zip
nss_files: Fix file stream leak in aliases lookup [BZ #23521]
In order to get a clean test case, it was necessary to fix partially
fixed bug 23522 as well.
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 66fac7f5b8..5209fc0456 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -65,6 +65,7 @@ ifeq (yes,$(build-shared))
 tests += tst-nss-files-hosts-erange
 tests += tst-nss-files-hosts-multi
 tests += tst-nss-files-hosts-getent
+tests += tst-nss-files-alias-leak
 endif
 
 # If we have a thread library then we can test cancellation against
@@ -171,3 +172,5 @@ endif
 $(objpfx)tst-nss-files-hosts-erange: $(libdl)
 $(objpfx)tst-nss-files-hosts-multi: $(libdl)
 $(objpfx)tst-nss-files-hosts-getent: $(libdl)
+$(objpfx)tst-nss-files-alias-leak: $(libdl)
+$(objpfx)tst-nss-files-alias-leak.out: $(objpfx)/libnss_files.so