summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/wsdiff.py
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/tools/scripts/wsdiff.py')
-rw-r--r--usr/src/tools/scripts/wsdiff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/tools/scripts/wsdiff.py b/usr/src/tools/scripts/wsdiff.py
index 90b6f769c8..259f2005fb 100644
--- a/usr/src/tools/scripts/wsdiff.py
+++ b/usr/src/tools/scripts/wsdiff.py
@@ -327,7 +327,7 @@ def fnFormat(fn) :
# root/usr/bin => root
#
def protoroot(fn):
- root = fn
+ root = fn.rstrip('/')
while len(root) > 1:
if os.path.isfile(os.path.join(root, genunix)):
return root