Changeset cabaff8 in rtems-source-builder


Ignore:
Timestamp:
Apr 13, 2018, 3:02:51 AM (14 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
50593d4
Parents:
162cbda
Message:

sb/path: Walk up to root checking if a path is writable.

A dirname of / is / so the path will never have a length of 0.

Close #3392

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/path.py

    r162cbda rcabaff8  
    144144def ispathwritable(path):
    145145    path = shell(path)
    146     while len(path) != 0:
     146    while len(path) > 1:
    147147        if exists(path):
    148148            return iswritable(path)
Note: See TracChangeset for help on using the changeset viewer.