|
2005-10-05
| ||
| 07:36 | • Closed ticket [1311285fff]: winFile.test fails with if hostname contains hyphens... artifact: 1fd271ce0a user: hobbs | |
|
2005-10-03
| ||
| 12:16 | • Ticket [1311285fff]: 2 changes artifact: 3fe66418c6 user: dgp | |
|
2005-10-02
| ||
| 23:27 | • New ticket [1311285fff]. artifact: d6f09fe342 user: wliao | |
winFile.test fails with if hostname contains hyphens
Closed / Fixed1311285fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-10-02 23:27:11
In the winFile.test for tcl, test winFile-4.0 (Enhanced
NTFS user/group permissions: test no acccess) uses
[getuser] to find to find the ownership of a file (set
owner [getuser $fname]). [getuser] will fail if the
hostname contains dashes, and potentially other legal
characters
Around line 115, [getuser] uses this [regexp] to find
the user
regexp { [A-Z]+\\.*$} $attrs owner
A hyphen is a legal character on Windows XP, so the
[regexp] fails if the owner is something like
"SOCKET-ERROR\wl".
I changed the RE being to
regexp { [^ \\]+\\.*$} $attrs owner
which works for me.
dgp Ticket [1311285fff]: 2 changes
[History diff]2005-10-03 12:16:09
hobbsplain2005-10-05 07:36:20
Logged In: YES user_id=72656 Fixed in cvs.
Log in (anonymous is fine) to add a comment.