From owner-cvs-sys Fri Jun 7 23:01:45 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA13362 for cvs-sys-outgoing; Fri, 7 Jun 1996 23:01:45 -0700 (PDT) Received: (from nate@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA13337; Fri, 7 Jun 1996 23:01:34 -0700 (PDT) Date: Fri, 7 Jun 1996 23:01:34 -0700 (PDT) From: Nate Williams Message-Id: <199606080601.XAA13337@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/ibcs2 ibcs2_stat.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk nate 96/06/07 23:01:33 Modified: sys/i386/ibcs2 ibcs2_stat.c Log: When uname() returns the system name, try to use the unqualified domain 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. Revision Changes Path 1.4 +6 -1 src/sys/i386/ibcs2/ibcs2_stat.c