Skip to contentSkip to conversation

sstate: Normalise paths before comparing with the whitelist

PATCH New Richard Purdie 1 participant 1 message Oct 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sstate: Normalise paths before comparing with the whitelist

Without this, path components like // could break comparisons with the whitelist leading to warnings being displayed to the user unintentionally.

---

meta/classes/sstate.bbclass +1 -0
index 03f083e..e820a2e 100644
@@ -150,6 +150,7 @@ def sstate_install(ss, d):
     match = []
     for f in sharedfiles:
         if os.path.exists(f):
+            f = os.path.normpath(f)
             realmatch = True
             for w in whitelist:
                 if f.startswith(w):