[master] 777bf9d Revert "Also insist that the vmod name matches before reusing, to cater for hardlinks."

Poul-Henning Kamp phk at FreeBSD.org
Mon Aug 25 11:52:44 CEST 2014


commit 777bf9d31a3ed07f4dce57ce6d6ea07654f119e0
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 25 09:52:27 2014 +0000

    Revert "Also insist that the vmod name matches before reusing, to cater for hardlinks."
    
    This reverts commit caa376943e315def7cee814008f01a0796d8e1d9.

diff --git a/bin/varnishd/cache/cache_vrt_vmod.c b/bin/varnishd/cache/cache_vrt_vmod.c
index 32652ab..b5b76fe 100644
--- a/bin/varnishd/cache/cache_vrt_vmod.c
+++ b/bin/varnishd/cache/cache_vrt_vmod.c
@@ -90,9 +90,7 @@ VRT_Vmod_Init(void **hdl, void *ptr, int len, const char *nm,
 
 	AZ(fstat(fd, &st));
 	VTAILQ_FOREACH(v, &vmods, list)
-		if (st.st_dev == v->st_dev &&
-		    st.st_ino == v->st_ino &&
-		    !strcmp(v->nm, nm))
+		if (st.st_dev == v->st_dev && st.st_ino == v->st_ino)
 			break;
 
 	if (v != NULL) {



More information about the varnish-commit mailing list