[newlib-cygwin/cygwin-3_4-branch] Revert "Cygwin: 3.4-only: uname: drop dot from external release info"

Corinna Vinschen corinna@sourceware.org
Sun Dec 11 10:46:11 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b9ebb4e9a56feda98b82d760e438af6ed059cb8c

commit b9ebb4e9a56feda98b82d760e438af6ed059cb8c
Author:     Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Sun Dec 11 11:19:00 2022 +0100
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Sun Dec 11 11:25:04 2022 +0100

    Revert "Cygwin: 3.4-only: uname: drop dot from external release info"
    
    This reverts commit b5eba8e972786275c76ea69a7ce6ef8d7c8279c3.

Diff:
---
 winsup/cygwin/uname.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc
index be7d7c03154b..e893660c6a1d 100644
--- a/winsup/cygwin/uname.cc
+++ b/winsup/cygwin/uname.cc
@@ -45,7 +45,7 @@ uname_x (struct utsname *name)
 #ifdef CYGPORT_RELEASE_INFO
       stpcpy (name->release, __XSTRING (CYGPORT_RELEASE_INFO));
 #else
-      __small_sprintf (name->release, "%d.%d.%d-0.%d.local",
+      __small_sprintf (name->release, "%d.%d.%d-0.%d.local.",
 		       cygwin_version.dll_major / 1000,
 		       cygwin_version.dll_major % 1000,
 		       cygwin_version.dll_minor,
@@ -58,10 +58,10 @@ uname_x (struct utsname *name)
       switch (wincap.cpu_arch ())
 	{
 	  case PROCESSOR_ARCHITECTURE_AMD64:
-	    strcat (name->release, strcpy (name->machine, ".x86_64"));
+	    strcat (name->release, strcpy (name->machine, "x86_64"));
 	    break;
 	  default:
-	    strcpy (name->machine, ".unknown");
+	    strcpy (name->machine, "unknown");
 	    break;
 	}
       /* domainame */


More information about the Cygwin-cvs mailing list