From d6d81225de7cc6873935f68d1f55e70a70c7bbd2 Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Fri, 10 Apr 1998 21:36:08 +0000 Subject: [PATCH] copyfile.c: The last fix wasn't quite correct in that (for copying only data forks) the rez fork was still created but with zero length. This fix doesn't create the rez fork at all under those circumstances. --- lib/libcontrib/copyfile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/libcontrib/copyfile.c b/lib/libcontrib/copyfile.c index cbab625..f1bafad 100644 --- a/lib/libcontrib/copyfile.c +++ b/lib/libcontrib/copyfile.c @@ -1,5 +1,5 @@ /* - * $Id: copyfile.c,v 1.2 1998/03/25 04:04:20 gdr-ftp Exp $ + * $Id: copyfile.c,v 1.3 1998/04/10 21:36:08 gdr-ftp Exp $ */ /* Change the arg types of GS/OS parameter blocks. Must be before #includes */ @@ -294,6 +294,9 @@ DEBUG(("creating %s\n", expandedTo->bufString.text)); inforec.pCount = 5; inforec.pathname = &(expandedTo->bufString); inforec.access = 0x00c3; + if ((flags & LC_COPY_REZ) == 0) { + inforec.storageType = standardFile; + } CreateGS(&inforec); if ((i = _toolErr) != 0) { errno = _mapErr(i); @@ -320,6 +323,8 @@ DEBUG(("copying file\n")); break; } +DEBUG(("doing fork %d (%s)\n", i, (i==0) ? "data", "rez")); + /* open the input file */ openrec.pCount = 4; openrec.pathname = &(expandedFrom->bufString);