Changeset 83147
- Timestamp:
- 08/26/11 07:12:57 (4 years ago)
- File:
-
- 1 edited
-
trunk/base/src/pextlib1.0/fs-traverse.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/pextlib1.0/fs-traverse.c
r79772 r83147 250 250 } 251 251 /* check errno before calling fts_close in case it sets errno to 0 on success */ 252 if (errno != 0 || (fts_close(root_fts) != 0 && !(flags & F_IGNORE_ERRORS))) { 252 if (errno != 0) { 253 Tcl_SetErrno(errno); 254 Tcl_ResetResult(interp); 255 Tcl_AppendResult(interp, root_fts->fts_path, ": ", (char *)Tcl_PosixError(interp), NULL); 256 fts_close(root_fts); 257 return TCL_ERROR; 258 } else if (fts_close(root_fts) != 0 && !(flags & F_IGNORE_ERRORS)) { 253 259 Tcl_SetErrno(errno); 254 260 Tcl_SetResult(interp, (char *)Tcl_PosixError(interp), TCL_STATIC);
Note: See TracChangeset
for help on using the changeset viewer.

