Changeset 2c0676d in rtems-source-builder


Ignore:
Timestamp:
Apr 13, 2018, 3:02:51 AM (18 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
680205d
Parents:
62f68d9
git-author:
Chris Johns <chrisj@…> (04/13/18 03:02:51)
git-committer:
Chris Johns <chrisj@…> (04/13/18 03:11:18)
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 #3393

File:
1 edited

Legend:

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

    r62f68d9 r2c0676d  
    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.