ref: 4380944405e2ee7e61db89fa245e50e532d90747
parent: 664d2643077f8a6fe4218d71baa79fac30bb7fde
author: kvik <kvik@a-b.xyz>
date: Thu May 16 15:02:44 EDT 2019
skip fthas() call for first branch as it is always false
--- a/unionfs.c
+++ b/unionfs.c
@@ -488,7 +488,7 @@
if(n < 0)
continue;
for(i = 0; i < n; i++){
- if(fthas(ft, dir[i].name))
+ if(u->prev != unionlist && fthas(ft, dir[i].name))
continue;
f = filenew(&dir[i]);
ftadd(ft, f);
@@ -495,7 +495,6 @@
}
free(dir);
}
-// ftprint(ft);
return ft;
}