This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
[APPROVE?] Stop ecosadmin.tcl calling 'cygpath' with empty path
- From: John Dallaway <jld at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 5 Mar 2003 15:59:58 +0000
- Subject: [APPROVE?] Stop ecosadmin.tcl calling 'cygpath' with empty path
- Organization: eCosCentric Limited
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