From owner-freebsd-emulation Wed Oct 7 16:29:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA21753 for freebsd-emulation-outgoing; Wed, 7 Oct 1998 16:29:34 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from fallout.campusview.indiana.edu (fallout.campusview.indiana.edu [149.159.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA21747; Wed, 7 Oct 1998 16:29:31 -0700 (PDT) (envelope-from jfieber@fallout.campusview.indiana.edu) Received: from localhost (jfieber@localhost) by fallout.campusview.indiana.edu (8.9.1/8.9.1) with ESMTP id SAA14644; Wed, 7 Oct 1998 18:29:26 -0500 (EST) Date: Wed, 7 Oct 1998 18:29:25 -0500 (EST) From: John Fieber To: Alex Nash cc: msmith@FreeBSD.ORG, emulation@FreeBSD.ORG, databases@FreeBSD.ORG Subject: Sybase/uname: mystery resolved Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Our linux uname(2) emulation is just dandy fine. There is a bug in the Sybase client library. It uses uname(2) to get the local host name which it sends along to the server. It turns out that it doesn't matter at all what uname(2) returns for a hostname as long as it is less than 30 bytes in length. Sounds like a buffer overflow if you ask me. Other than this, sybase is working fine. (Note: I have not yet tried it on a raw partition--I'll have to cannibalize a swap partition to test that--and a few other more exotic things.) Also, a big thanks to Alex Nash for providing a Linux box for debugging and comparison purposes. -john To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message