1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SCP: Avoid extraneous stderr output while getting tar/curl version

This commit is contained in:
Mark Pizzolato
2022-10-21 17:41:12 -10:00
parent 5ec770d077
commit a5f6dcf1c7

2
scp.c
View File

@@ -6731,7 +6731,7 @@ FILE *f;
memset (toolversion, 0, sizeof(toolversion));
toolpath = sim_get_tool_path (tool);
if (toolpath[0]) {
snprintf (versioncmd, sizeof (versioncmd), "%s --version", tool);
snprintf (versioncmd, sizeof (versioncmd), "%s --version 2>&1", tool);
if ((f = popen (versioncmd, "r"))) {
do {
if (NULL == fgets (toolversion, sizeof(toolversion)-1, f))