diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index cda2f72a2..a6a0b683c 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -405,6 +405,8 @@ fhandler_proc::fill_filebuf () return false; } +extern "C" int uname_x (struct utsname *); + static off_t format_proc_version (void *, char *&destbuf) { @@ -413,7 +415,7 @@ format_proc_version (void *, char *&destbuf) char *bufptr = buf; struct utsname uts_name; - uname (&uts_name); + uname_x (&uts_name); bufptr += __small_sprintf (bufptr, "%s version %s (%s@%s) (%s) %s\n", uts_name.sysname, uts_name.release, USERNAME, HOSTNAME, GCC_VERSION, uts_name.version); diff --git a/winsup/cygwin/release/3.0.5 b/winsup/cygwin/release/3.0.5 new file mode 100644 index 000000000..62c8cf5ca --- /dev/null +++ b/winsup/cygwin/release/3.0.5 @@ -0,0 +1,13 @@ +What's new: +----------- + + +What changed: +------------- + + +Bug Fixes +--------- + +- Fix /proc/version after uname change + Addresses: https://cygwin.com/ml/cygwin/2019-03/msg00467.html