Date: Wed, 07 Jan 1998 16:31:37 +1030 From: Mike Smith <mike@smith.net.au> To: pb@fasterix.freenix.org (Pierre Beyssac) Cc: freebsd-current@FreeBSD.ORG Subject: Re: funny ETXTBSY problem Message-ID: <199801070601.QAA00482@word.smith.net.au> In-Reply-To: Your message of "Tue, 06 Jan 1998 21:27:39 BST." <19980106212739.HR12419@@>
next in thread | previous in thread | raw e-mail | index | archive | help
> I just noticed the following problem: you can't copy over an > executable after it has been run once since boot time. > > This is fairly easy to reproduce: > > $ cp /bin/sh /tmp > $ echo echo hello there | /tmp/sh > hello there > $ cp /bin/sh /tmp > cp: /tmp/sh: Text file busy > > I noticed this after applying the patches John Dyson committed > today but that's apparently not where the problem comes from, as > this works with yesterday's kernel too... I can't say if it > works with a kernel older than last 20 December. You have a mutant problem: word:/tmp>uname -a FreeBSD word.smith.net.au 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Wed Jan 7 07:57:45 CST 1998 root@word.smith.net.au:/local0/build/src/sys/compile/WORD i386 word:/tmp>cp /bin/sh . word:/tmp>echo echo hello world | ./sh hello world word:/tmp>rm ./sh override r-xr-xr-x mike/bin for ./sh? y word:/tmp>ls -l ./sh ls: ./sh: No such file or directory -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801070601.QAA00482>