summaryrefslogtreecommitdiffstats
path: root/generic/tclFCmd.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2001-08-23 17:37:07 (GMT)
committervincentdarley <vincentdarley>2001-08-23 17:37:07 (GMT)
commit1a3f98af68e5b64858d43c24ada3ed06146b79ce (patch)
tree6169e1176aad79725e33cee0d99ca91f726feed6 /generic/tclFCmd.c
parent21154621ac11eeb16598eac378d194c3975b94e1 (diff)
downloadtcl-1a3f98af68e5b64858d43c24ada3ed06146b79ce.zip
tcl-1a3f98af68e5b64858d43c24ada3ed06146b79ce.tar.gz
tcl-1a3f98af68e5b64858d43c24ada3ed06146b79ce.tar.bz2
fs update
Diffstat (limited to 'generic/tclFCmd.c')
-rw-r--r--generic/tclFCmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c
index 8576ca8..7f3c590 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.9 2001/08/11 18:43:21 vincentdarley Exp $
+ * RCS: @(#) $Id: tclFCmd.c,v 1.10 2001/08/23 17:37:07 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -792,8 +792,7 @@ FileBasename(interp, pathPtr)
if (objc > 0) {
Tcl_ListObjIndex(NULL, splitPtr, objc-1, &resultPtr);
if ((objc == 1) &&
- (Tcl_GetPathType(Tcl_GetString(resultPtr))
- != TCL_PATH_RELATIVE)) {
+ (Tcl_FSGetPathType(resultPtr, NULL, NULL) != TCL_PATH_RELATIVE)) {
resultPtr = NULL;
}
}