diff options
author | Chris Johns <chrisj@rtems.org> | 2018-04-13 13:02:51 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-04-13 13:11:18 +1000 |
commit | 2c0676d4fa4b773369431fdc57a62333346876ea (patch) | |
tree | 18c8e068d21795ec5c496d31b47ce809f7dcf811 | |
parent | 62f68d9712621a1aec6eb55bf0eecd45c3dc8f25 (diff) |
sb/path: Walk up to root checking if a path is writable.4.11
A dirname of / is / so the path will never have a length of 0.
Close #3393
-rw-r--r-- | source-builder/sb/path.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py index 679436c..b86df0d 100644 --- a/source-builder/sb/path.py +++ b/source-builder/sb/path.py @@ -143,7 +143,7 @@ def iswritable(path): def ispathwritable(path): path = shell(path) - while len(path) != 0: + while len(path) > 1: if exists(path): return iswritable(path) path = dirname(path) |