From owner-freebsd-hackers Tue Jun 10 21:16:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA27722 for hackers-outgoing; Tue, 10 Jun 1997 21:16:02 -0700 (PDT) Received: from dfw-ix8.ix.netcom.com (dfw-ix8.ix.netcom.com [206.214.98.8]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA27698 for ; Tue, 10 Jun 1997 21:15:55 -0700 (PDT) Received: (from smap@localhost) by dfw-ix8.ix.netcom.com (8.8.4/8.8.4) id XAA04137; Tue, 10 Jun 1997 23:14:41 -0500 (CDT) Received: from col-oh21-04.ix.netcom.com(207.220.130.132) by dfw-ix8.ix.netcom.com via smap (V1.3) id sma004075; Tue Jun 10 23:14:03 1997 Message-ID: <339E263B.516B@ix.netcom.com> Date: Wed, 11 Jun 1997 00:14:52 -0400 From: Richard Scranton Reply-To: scrantr@ix.netcom.com Organization: LDA Systems, Columbus X-Mailer: Mozilla 3.01 (Win95; I) MIME-Version: 1.0 To: Gilles.Bruno@ujf-grenoble.fr CC: freebsd-hackers-digest@FreeBSD.ORG Subject: Re: hackers-digest V3 #237 References: <199706110206.TAA21262@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > {423}Root /bin/ls -a -l /usr/local/samba/var/locks > total 60 > drwxr-xr-x 2 root wheel 512 Jan 28 11:19 . > drwxr-xr-x 3 root wheel 512 Jan 28 11:36 .. > -rw-rw-rw- 1 root wheel 102400 Jan 28 11:26 SHARE_MEM_FILE > -rw-rw-rw- 1 root wheel 4294967304 Jan 28 12:04 > SHARE_MEM_FILE.processes > ^^^^^^^^^^ > -rw-r--r-- 1 root wheel 200 Jan 28 12:04 STATUS..LCK > -rw-r--r-- 1 root wheel 77 Jan 28 11:19 browse.dat > -rw-r--r-- 1 root wheel 0 Jan 28 11:19 wins.dat > > Hike ! What's that ? It looks to me like DOS record locking in effect. Advisory locks are/were implemented by adding a ridiculous offset and performing a mandatory lock. DOS didn't care that the offset for the lock was outside the scope of the file. Clever use of a bug, I suppose. -- =================================================================== Richard Scranton - LDA Systems - Information Management Consulting scrantr@ix.netcom.com Columbus Cincinnati Cleveland Toledo Atlanta