shithub: tlsclient

Download patch

ref: 31165ca54d92ef368b10cda17b73eaf16e685748
parent: f2a9564550cfa320b67f57e28734d63606acf0eb
author: Jacob Moody <moody@posixcafe.org>
date: Sun Jul 9 06:40:10 EDT 2023

use sh -c to allow askpass to use arguments

quite nice if you want to point it at a password manager

--- a/cpu.c
+++ b/cpu.c
@@ -69,7 +69,7 @@
 	case 0:
 		close(p[0]);
 		dup2(p[1], 1);
-		execlp(askpass, askpass, nil);
+		execlp("sh", "sh", "-c", askpass, nil);
 		sysfatal("failed to exec askpass");
 		break;
 	default: