libgsmhr/fetch_sources: Only use the filename and not any path
There shouldn't be any but somebody might be nasty :p
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
diff --git a/libgsmhr/fetch_sources.py b/libgsmhr/fetch_sources.py
index 6a3cf00..a65fff2 100755
--- a/libgsmhr/fetch_sources.py
+++ b/libgsmhr/fetch_sources.py
@@ -24,7 +24,7 @@
def process_file(z, e):
- fh = open(e.filename.lower(), 'w')
+ fh = open(os.path.basename(e.filename.lower()), 'w')
d = z.read(e).replace('\r','')
fh.write(d)
fh.close()