From owner-cvs-src@FreeBSD.ORG Sun Jun 29 18:29:46 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE12D37B401; Sun, 29 Jun 2003 18:29:46 -0700 (PDT) Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CDAA4400B; Sun, 29 Jun 2003 18:29:45 -0700 (PDT) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id 6008B425E; Mon, 30 Jun 2003 10:29:44 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id A95F4425D; Mon, 30 Jun 2003 10:29:43 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id 6CBE81E4641; Mon, 30 Jun 2003 10:29:43 +0900 (JST) Date: Mon, 30 Jun 2003 10:29:43 +0900 Message-ID: <7mwuf41hfc.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: John-Mark Gurney In-Reply-To: <200306220702.h5M72HSH080929@repoman.freebsd.org> References: <200306220702.h5M72HSH080929@repoman.freebsd.org> User-Agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS snapshot-20020531 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/cp utils.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 01:29:47 -0000 At Sun, 22 Jun 2003 00:02:17 -0700 (PDT), John-Mark Gurney wrote: > also fix a slight bogon that assumed an fd of 0 was not valid. Changed > it to be -1. It seems this modification should be applied to setfile() call in cp.c, too. Index: cp.c =================================================================== RCS file: /home/ncvs/src/bin/cp/cp.c,v retrieving revision 1.48 diff -u -r1.48 cp.c --- cp.c 1 May 2003 16:58:54 -0000 1.48 +++ cp.c 30 Jun 2003 01:26:28 -0000 @@ -366,7 +366,7 @@ * normally want to preserve them on directories. */ if (pflag) { - if (setfile(curr->fts_statp, 0)) + if (setfile(curr->fts_statp, -1)) rval = 1; } else { mode = curr->fts_statp->st_mode; -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project