Date: Thu, 8 Apr 1999 22:50:13 +0100 From: Mark Ovens <marko@uk.radan.com> To: Doug White <dwhite@resnet.uoregon.edu> Cc: questions@freebsd.org Subject: Re: Bug in cp(1) or a filesystem problem? Message-ID: <19990408225012.N2997@marder-1.localhost> In-Reply-To: <Pine.BSF.4.03.9904081052240.25113-100000@resnet.uoregon.edu>; from Doug White on Thu, Apr 08, 1999 at 10:53:54AM -0700 References: <19990407202537.I2018@marder-1.localhost> <Pine.BSF.4.03.9904081052240.25113-100000@resnet.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 08, 1999 at 10:53:54AM -0700, Doug White wrote:
> On Wed, 7 Apr 1999, Mark Ovens wrote:
>
> > Thanks for the pointer, but shouldn't cp(1) give some kind of
> > warning/error in this situation instead of just hanging? (I left
> > it for >1 hour at one point).
>
> It's trying to copy the contents of the FIFO instead of the FIFO itself.
>
> I guess it depends on what you call 'correct behavior' in this instance.
>
Doh! I got tripped up again by using SunOS 4.1 for too long. In
SunOS ``-R'' and ``-r'' mean the same, in FreeBSD they don't.
The manpage says:
COMPATIBILITY
Historic versions of the cp utility had a -r option. This
implementation supports that option, however, its use is
strongly discouraged, as it does not correctly copy special
files, symbolic links or fifo's.
and in cp.c we have:
case S_IFIFO:
if (Rflag) {
if (copy_fifo(curr->fts_statp, !dne))
rval = 1;
} else {
if (copy_file(curr, dne))
rval = 1;
}
break;
> Doug White
> Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve
> http://gladstone.uoregon.edu/~dwhite | www.freebsd.org
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
--
FreeBSD - The Power To Serve http://www.freebsd.org
My Webpage http://www.users.globalnet.co.uk/~markov
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:marko@uk.radan.com http://www.radan.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990408225012.N2997>
