From owner-freebsd-questions Thu Apr 8 14:55:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id CACA814D21 for ; Thu, 8 Apr 1999 14:55:05 -0700 (PDT) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by finch-post-10.mail.demon.net with smtp (Exim 2.12 #1) id 10VMjP-0007NF-0A; Thu, 8 Apr 1999 21:53:03 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from marder-1. (rasnt-1 [193.114.228.211]) by uk.radan.com (8.6.10/8.6.10) with ESMTP id WAA04174; Thu, 8 Apr 1999 22:52:33 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id WAA05192; Thu, 8 Apr 1999 22:50:13 +0100 (BST) (envelope-from marko) Date: Thu, 8 Apr 1999 22:50:13 +0100 From: Mark Ovens To: Doug White Cc: questions@freebsd.org Subject: Re: Bug in cp(1) or a filesystem problem? Message-ID: <19990408225012.N2997@marder-1.localhost> References: <19990407202537.I2018@marder-1.localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Doug White on Thu, Apr 08, 1999 at 10:53:54AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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