From owner-freebsd-current Mon Mar 6 07:16:03 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA07573 for current-outgoing; Mon, 6 Mar 1995 07:16:03 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id HAA07561 for ; Mon, 6 Mar 1995 07:15:55 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id BAA25411 for current@freebsd.org; Tue, 7 Mar 1995 01:12:24 +1000 Date: Tue, 7 Mar 1995 01:12:24 +1000 From: Bruce Evans Message-Id: <199503061512.BAA25411@godzilla.zeta.org.au> To: current@FreeBSD.org Subject: more ETXTBSY bugs Sender: current-owner@FreeBSD.org Precedence: bulk Try this: cp /bin/echo /tmp chmod 777 /tmp/echo /tmp/echo Then rm /tmp/echo s says "override rwxrwxrwx bde/bin for echo?" This is because `rm' uses access() to check for write access on the file; access() fails and sets errno = ETXTBSY and `rm' decides to prompt because the file isn't writable. The unlink works if I respond `y', of course. All this may be old behaviour. There is certainly some new behaviour: The ETXTBUSY bit didn't go away while I was running `make' in the background for 10-20 minutes. Perhaps the vnode and associated buffers didn't go away either, and clog up the caches. Bruce