Date: Mon, 30 Jun 2003 10:29:43 +0900 From: Jun Kuriyama <kuriyama@imgsrc.co.jp> To: John-Mark Gurney <jmg@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/cp utils.c Message-ID: <7mwuf41hfc.wl@black.imgsrc.co.jp> In-Reply-To: <200306220702.h5M72HSH080929@repoman.freebsd.org> References: <200306220702.h5M72HSH080929@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
<kuriyama@FreeBSD.org> // FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mwuf41hfc.wl>
