From c9252d1e425dad7c08fce34c92fef34a059466dd Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 27 Oct 2022 09:07:32 -1000 Subject: [PATCH] makefile, SCP: Ignore the presence of , in "uname -a" output Fix #1164 --- makefile | 2 +- scp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index ea5d63a3..1e986a68 100644 --- a/makefile +++ b/makefile @@ -359,7 +359,7 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin) $(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H$(GIT_EXTRA_FILES)%nSIM_GIT_COMMIT_TIME $(isodate)" >.git-commit-id) endif endif - SIM_BUILD_OS_VERSION= -DSIM_BUILD_OS_VERSION="$(shell uname -a)" + SIM_BUILD_OS_VERSION= -DSIM_BUILD_OS_VERSION="$(shell uname -a|sed 's/,//g')" LTO_EXCLUDE_VERSIONS = PCAPLIB = pcap ifeq (agcc,$(findstring agcc,${GCC})) # Android target build? diff --git a/scp.c b/scp.c index afb97834..9cf8ce66 100644 --- a/scp.c +++ b/scp.c @@ -6954,7 +6954,7 @@ if (flag) { char buildosversion[2*PATH_MAX+1] = S_xstr(SIM_BUILD_OS_VERSION); #endif - if ((f = popen ("uname -a", "r"))) { + if ((f = popen ("uname -a | sed 's/,//g'", "r"))) { memset (osversion, 0, sizeof (osversion)); do { if (NULL == fgets (osversion, sizeof (osversion)-1, f))