Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] sstate: Normalise paths before comparing with the whitelist
@ 2012-10-05 13:16 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-10-05 13:16 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 03f083e..e820a2e 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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):





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-05 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05 13:16 [PATCH] sstate: Normalise paths before comparing with the whitelist Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox