shithub: gefs

Download patch

ref: 4cebfdaed387e8d208a654265a3101194d095348
parent: 19164adc27457c74995ef12323e8d269b81618fd
author: Michael Forney <mforney@mforney.org>
date: Fri Mar 4 00:27:33 EST 2022

fs: use "main" snap on empty aname

--- a/fs.c
+++ b/fs.c
@@ -703,6 +703,8 @@
 		rerror(m, Enomem);
 		return;
 	}
+	if(m->aname[0] == '\0')
+		m->aname = "main";
 	if((mnt->name = strdup(m->aname)) == nil){
 		rerror(m, Enomem);
 		return;