summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/wsdiff.py
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2021-02-14 11:23:35 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2021-02-15 17:26:58 +0000
commit6be183eef7ea336db825abd64d8b464ca990a38b (patch)
tree1aefd0fe4617915dda5b3af5691f08d04dbb3fa9 /usr/src/tools/scripts/wsdiff.py
parent42757785c4c4da261e053d2c6e2ef6cb2d348a15 (diff)
downloadillumos-joyent-6be183eef7ea336db825abd64d8b464ca990a38b.tar.gz
13542 wsdiff can strip first character of pathnames
Reviewed by: Jason King <jason.king@joyent.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
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