Commit Diff


commit - 17a04409b59bc60d46ecbddbe5728616ce43c20b
commit + adbe6a6493c0e91fcfc918db8f4b5839a2867b1c
blob - 6fa67435e06d60f060e8a406541862243669021d
blob + 59e1a6c42461c4968a2ab87b961ae7926c89839b
--- parse.y
+++ parse.y
@@ -216,8 +216,8 @@ locopt		: TAUTO TINDEX TBOOL	{ loc->auto_index = $3 ? 
 		| TREQUIRE TCLIENT TCA TSTRING {
 			if (loc->reqca != NULL)
 				yyerror("`require client ca' specified more than once");
-			if (*$4 != '/')
-				yyerror("path to certificate must be absolute: %s", $4);
+
+			ensure_absolute_path($4);
 			if ((loc->reqca = load_ca($4)) == NULL)
 				yyerror("couldn't load ca cert: %s", $4);
 			free($4);
@@ -285,7 +285,7 @@ char *
 ensure_absolute_path(char *path)
 {
 	if (path == NULL || *path != '/')
-		yyerror("not an absolute path");
+		yyerror("not an absolute path: %s", path);
 	return path;
 }