Index: owners.py |
diff --git a/owners.py b/owners.py |
index e0b4e07b5e9ab2e1c916e104b743982d743a9cc8..5cecdafdaca4307cad5782e02f0bde58ced73e11 100644 |
--- a/owners.py |
+++ b/owners.py |
@@ -224,7 +224,7 @@ class Database(object): |
glob_string = m.group(1) |
directive = m.group(2) |
full_glob_string = self.os_path.join(self.root, dirpath, glob_string) |
- if self.os_path.sep in glob_string: |
+ if '/' in glob_string: |
M-A Ruel
2012/10/20 23:05:23
personally, I'd also blacklist '\\' for safety.
|
raise SyntaxErrorInOwnersFile(owners_path, lineno, |
'per-file globs cannot span directories: "%s"' % line) |
baselines = self.glob(full_glob_string) |