public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Antanas Ursulis" <antanas.ursulis@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/log-analysis:master commit in: /
Date: Mon, 29 Jul 2013 16:08:25 +0000 (UTC)	[thread overview]
Message-ID: <1375114039.7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.uranium@gentoo> (raw)

commit:     7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6
Author:     Antanas Uršulis <antanas.ursulis <AT> gmail <DOT> com>
AuthorDate: Mon Jul 29 16:07:19 2013 +0000
Commit:     Antanas Ursulis <antanas.ursulis <AT> gmail <DOT> com>
CommitDate: Mon Jul 29 16:07:19 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/log-analysis.git;a=commit;h=7f8c730c

More basename() defensiveness

---
 storage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage.py b/storage.py
index 847806f..fda6c35 100644
--- a/storage.py
+++ b/storage.py
@@ -18,6 +18,6 @@ class FilesystemStorage:
 		except OSError:
 			pass # TODO: proper handling
 
-		path = os.path.join(self.root, source, filename) # TODO: consider adding in date at some point
+		path = os.path.join(self.root, source, os.path.basename(filename)) # TODO: consider adding in date at some point
 		with open(path, 'wb') as f:
 			f.write(data)


             reply	other threads:[~2013-07-29 16:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-29 16:08 Antanas Ursulis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-07-29 22:40 [gentoo-commits] proj/log-analysis:master commit in: / Antanas Ursulis
2013-07-29 22:40 Antanas Ursulis
2013-07-29 22:40 Antanas Ursulis
2013-07-29 18:59 Antanas Ursulis
2013-07-29 16:08 Antanas Ursulis
2013-07-29 16:08 Antanas Ursulis
2013-07-29 16:08 Antanas Ursulis
2013-07-05  0:00 Antanas Ursulis
2013-07-05  0:00 Antanas Ursulis
2013-07-04  1:39 Antanas Ursulis
2013-07-03  7:15 Antanas Ursulis
2013-07-03  7:15 Antanas Ursulis
2013-07-03  7:15 Antanas Ursulis
2013-07-03  7:15 Antanas Ursulis
2013-07-03  7:15 Antanas Ursulis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1375114039.7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.uranium@gentoo \
    --to=antanas.ursulis@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox