shithub: unionfs

Download patch

ref: 44ecd71e458b88461e2cedf3ef11a52ccf69bf8e
parent: 745a16c328434404726892f67c398f5878d114b0
author: kvik <kvik@a-b.xyz>
date: Sun Aug 25 12:07:21 EDT 2019

fix empty list check

--- a/unionfs.c
+++ b/unionfs.c
@@ -793,7 +793,7 @@
 		u->root = mkpath(argv[i], nil);
 		unionlink(unionlist, u);
 	}
-	if(unionlist->next == unionlist->prev)
+	if(unionlist->next == &u0)
 		sysfatal("empty branch list");
 	if(c == 0)
 		unionlist->next->create = 1;