d52ead1462
name (ie; strip off the domain). Given a hostname 'fooey.bar.com', the previous code returned a system name of 'fooey.ba', instead of the more correct 'fooey'. SCO uses 'uname' for many things, including some of it's socket code so this patch is necessary for running certain legacy SCO apps. :) A variant of this code has been running on my box for 2 months now.