Changeset 51099 in webkit


Ignore:
Timestamp:
Nov 17, 2009 5:12:50 PM (14 years ago)
Author:
mrowe@apple.com
Message:

<http://webkit.org/b/31603> WebSocket server is confused if WebKit tests run from within /tmp on Mac OS X

Reviewed by Alexey Proskuryakov.

  • pywebsocket/mod_pywebsocket/dispatch.py: Use os.path.realpath as it returns the canonical path of a file.

This prevents symlinks from confusing the descendant check.

Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51096 r51099  
     12009-11-17  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        <http://webkit.org/b/31603> WebSocket server is confused if WebKit tests run from within /tmp on Mac OS X
     6
     7        * pywebsocket/mod_pywebsocket/dispatch.py: Use os.path.realpath as it returns the canonical path of a file.
     8        This prevents symlinks from confusing the descendant check.
     9
    1102009-11-17  Mark Rowe  <mrowe@apple.com>
    211
  • trunk/WebKitTools/pywebsocket/mod_pywebsocket/dispatch.py

    r50102 r51099  
    137137        if scan_dir is None:
    138138            scan_dir = root_dir
    139         if not os.path.abspath(scan_dir).startswith(os.path.abspath(root_dir)):
     139        if not os.path.realpath(scan_dir).startswith(os.path.realpath(root_dir)):
    140140            raise DispatchError('scan_dir:%s must be a directory under '
    141141                                'root_dir:%s.' % (scan_dir, root_dir))
Note: See TracChangeset for help on using the changeset viewer.