summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-06-08 06:01:29 +0000
committernate <nate@FreeBSD.org>1996-06-08 06:01:29 +0000
commitc8e7c06a293dc0edc05652ba5598309fa798e818 (patch)
treec951575ff78d89d491e671b4f5d2c320eac9c73c /sys/net
parent868a754d52f804f73cfb5a0aba9e612fb19a39b8 (diff)
downloadFreeBSD-src-c8e7c06a293dc0edc05652ba5598309fa798e818.zip
FreeBSD-src-c8e7c06a293dc0edc05652ba5598309fa798e818.tar.gz
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.
Diffstat (limited to 'sys/net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud