mirror of
https://github.com/GnoConsortium/gno.git
synced 2026-04-26 10:17:47 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user