shithub: unionfs

Download patch

ref: 6e4c892e30b8d802559c8809fd793fe7d5f6899d
parent: 85595b2b4e755ee0115fd1cdeb234255292f4bd2
author: kvik <kvik@a-b.xyz>
date: Tue May 14 17:07:44 EDT 2019

fix fuckups

--- a/unionfs.c
+++ b/unionfs.c
@@ -511,11 +511,11 @@
 	npath = mkpath(path, i->name, nil);
 	free(path);
 	st = emalloc(sizeof(*st));
-	if((st->fd = create(npath, i->mode, i->perm)) < 0)
+	if((st->fd = create(npath, i->mode, i->perm)) < 0){
 		responderror(r);
 		return;
 	}
-	if((d = dirfstat(st->fd)) == nil)
+	if((d = dirfstat(st->fd)) == nil){
 		fstatefree(st);
 		responderror(r);
 		return;