shithub: gefs

Download patch

ref: ff80bf501c401356fef1b3090301c85e13c380c3
parent: 56d87e3e608c8850343b650809f159fee3fc4bf1
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 16 22:24:12 EST 2023

fs: allow auth as none no matter what

--- a/fs.c
+++ b/fs.c
@@ -768,6 +768,10 @@
 		rerror(m, Eauth);
 		return;
 	}
+	if(strcmp(m->uname, "none") == 0){
+		rerror(m, Enone);
+		return;
+	}
 	if((de = mallocz(sizeof(Dent), 1)) == nil){
 		rerror(m, Enomem);
 		return;
@@ -943,7 +947,7 @@
 			goto Out;
 		}
 		putfid(af);
-	}else if(!fs->noauth){
+	}else if(!fs->noauth && strcmp(m->uname, "none") != 0){
 		rerror(m, Ebadu);
 		goto Out;
 	}