From owner-freebsd-current Sat Feb 24 17:22:49 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA02851 for current-outgoing; Sat, 24 Feb 1996 17:22:49 -0800 (PST) Received: from precipice.shockwave.com (precipice.shockwave.com [171.69.108.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id RAA02842 for ; Sat, 24 Feb 1996 17:22:47 -0800 (PST) Received: from localhost.shockwave.com (localhost.shockwave.com [127.0.0.1]) by precipice.shockwave.com (8.7.3/8.7.3) with SMTP id RAA18977; Sat, 24 Feb 1996 17:21:44 -0800 (PST) Message-Id: <199602250121.RAA18977@precipice.shockwave.com> X-Mailer: exmh version 1.6.5 12/11/95 To: Bruce Evans cc: freebsd-current@FreeBSD.org, jhay@mikom.csir.co.za Subject: Re: Bug in libc/db/hash/hash.c??? In-reply-to: Your message of "Sun, 25 Feb 1996 09:07:17 +1100." <199602242207.JAA19086@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 24 Feb 1996 17:21:40 -0800 From: Paul Traina Sender: owner-current@FreeBSD.org Precedence: bulk Well, I haven't seen it happen here yet, perhaps it only breaks if the water in your drain goes the wrong way? Actually, the only reason I could imagine this occuring is if the stat failed because you didn't have permission to access the file, but then you DID have write permission to mess the file up. Bizzare. I've put up on freefall a new revision of hash.c, try http://freefall.cdrom.com/~pst/hash.c This postpones the stat until you've successfully opened the file and then just does a fstat. I don't like it, because it adds additional syscall overhead, but wtf.