[APPROVE?] Stop ecosadmin.tcl calling 'cygpath' with empty path
John Dallaway
jld@ecoscentric.com
Wed Mar 5 16:07:00 GMT 2003
The appended patch accommodates the fact that the Cygwin 'cygpath' tool
does not like empty paths. "ecosadmin.tcl list" will therefore fail
under Windows at present. Approval requested for 2.0 branch.
John Dallaway
eCosCentric Limited
--cut here--
--- /packages/ecosadmin.tcl.old 2003-01-29 12:45:02.000000000 +0000
+++ /packages/ecosadmin.tcl 2003-03-05 15:03:02.000000000 +0000
@@ -790,11 +790,11 @@
# Take a cygwin32 filename such as //d/tmp/pkgobj and turn it into something
# acceptable to Tcl, i.e. d:/tmp/pkgobj. There are a few other complications...
proc ecosadmin::get_pathname_for_tcl { name } {
- if { $ecosadmin::windows_host } {
+ if { ( $ecosadmin::windows_host ) && ( $name != "" ) } {
# If there is no logical drive letter specified
if { [ string match "?:*" $name ] == 0 } {
# Invoke cygpath to resolve the POSIX-style path
More information about the Ecos-patches
mailing list