Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3256 winFile.test fails with if hostname contains hyphens

obsolete: 8.5a3
closed-fixed
Vince Darley
5
2005-10-05
2005-10-02
WL
No

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.

Discussion

  • Don Porter
    Don Porter
    2005-10-03

    • labels: 104246 --> 36. Pathname Management
    • assigned_to: nobody --> vincentdarley
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2005-10-05

    • status: open --> closed-fixed
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2005-10-05

    Logged In: YES
    user_id=72656

    Fixed in cvs.