diff options
author | vincentdarley <vincentdarley> | 2001-09-08 14:05:08 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2001-09-08 14:05:08 (GMT) |
commit | e8b43db1be149b33a510f281789b13d6e266797d (patch) | |
tree | 48272ea4c2e18b5c060109e1536548ed7591a932 /generic/tclFCmd.c | |
parent | 876b9ec159a11b706a30fdf9969469d720f2046c (diff) | |
download | tcl-e8b43db1be149b33a510f281789b13d6e266797d.zip tcl-e8b43db1be149b33a510f281789b13d6e266797d.tar.gz tcl-e8b43db1be149b33a510f281789b13d6e266797d.tar.bz2 |
channel-copy-fix
Diffstat (limited to 'generic/tclFCmd.c')
-rw-r--r-- | generic/tclFCmd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c index c05b7a4..042fe79 100644 --- a/generic/tclFCmd.c +++ b/generic/tclFCmd.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclFCmd.c,v 1.12 2001/09/04 18:06:34 vincentdarley Exp $ + * RCS: @(#) $Id: tclFCmd.c,v 1.13 2001/09/08 14:05:09 vincentdarley Exp $ */ #include "tclInt.h" @@ -599,6 +599,9 @@ CopyRenameOneFile(interp, source, target, copyFlag, force) } } else { result = Tcl_FSCopyFile(source, target); + if ((result != TCL_OK) && (errno == EXDEV)) { + result = TclCrossFilesystemCopy(interp, source, target); + } if (result != TCL_OK) { /* * We could examine 'errno' to double-check if the problem |