shithub: unionfs

Download patch

ref: 57543d1e2391be2c7e94e20091dbcb330e352dee
parent: 9d7f037396f142636e116c2e9cab74bc3e6caaf8
author: kvik <kvik@a-b.xyz>
date: Mon May 24 12:01:05 EDT 2021

Remove unnecessary check

--- a/unionfs.c
+++ b/unionfs.c
@@ -296,10 +296,6 @@
 	F *p, *f;
 	Fstate *st;
 
-	/* not sure if needed */
-	if(!(fid->qid.type&QTDIR))
-		return "walk in non-directory";
-	
 	st = fid->aux;
 	p = st->file;
 	if((f = filewalk(p, name)) == nil)