shithub: vdir

Download patch

ref: 848a598df06df0557bfe37dd6711d8ed966a56b6
parent: dd0e9a1515ca68355bd8117b0903aa88db283c83
author: phil9 <telephil9@gmail.com>
date: Wed Nov 24 23:59:02 EST 2021

fix plumbing of files with spaces in their path (thanks igor)

--- a/vdir.c
+++ b/vdir.c
@@ -211,7 +211,7 @@
 	f = smprint("%s/%s", path, name);
 	e = access(f, 0)==0;
 	if(e)
-		plumbsendtext(plumbfd, "vdir", nil, nil, f);
+		plumbsendtext(plumbfd, "vdir", nil, path, name);
 	else{
 		alert("Error", "File does not exist anymore", mctl, kctl);
 		loaddirs();