From: Atila <atila.alr@dpf.gov.br>
To: Markus Suvanto <markus.suvanto@gmail.com>, linux-btrfs@vger.kernel.org
Subject: [PATCH]Re: The first character disappears
Date: Mon, 24 Aug 2009 09:51:59 -0300 [thread overview]
Message-ID: <4A928CEF.2060903@dpf.gov.br> (raw)
In-Reply-To: <20090824115232.GC15449@think>
*
Signed-off-by: Atila <atila.alr@dpf.gov.br>
---
bcp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bcp b/bcp
index 5729e91..7c6b351 100755
--- a/bcp
+++ b/bcp
@@ -107,7 +107,7 @@ if src_args > 1:
exit(1)
for srci in xrange(0, src_args):
- src = args[srci]
+ src = args[srci].strip('/')
if os.path.isfile(src):
statinfo = os.lstat(src)
force_name = None
@@ -136,7 +136,7 @@ for srci in xrange(0, src_args):
srcname = os.path.join(dirpath, x)
statinfo = os.lstat(srcname)
- if srcname.startswith(src):
+ if srcname.startswith(src + '/'):
part = srcname[len(src) + 1:]
if stat.S_ISLNK(statinfo.st_mode):
@@ -152,7 +152,7 @@ for srci in xrange(0, src_args):
for f in filenames:
srcname = os.path.join(dirpath, f)
- if srcname.startswith(src):
+ if srcname.startswith(src + '/'):
part = srcname[len(src) + 1:]
statinfo = os.lstat(srcname)
--
1.6.4
*
next prev parent reply other threads:[~2009-08-24 12:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bcf98daa0908232200r854444dwde3cfcf6b2181c6b@mail.gmail.com>
2009-08-24 5:17 ` The first character disappears Markus Suvanto
2009-08-24 11:52 ` Chris Mason
2009-08-24 12:51 ` Atila [this message]
2009-08-24 13:52 ` [PATCH]Re: " Markus Suvanto
2009-08-24 14:22 ` Markus Suvanto
2009-08-24 16:42 ` Markus Suvanto
2009-08-24 17:11 ` Sage Weil
2009-08-25 8:04 ` Markus Suvanto
2009-08-25 20:19 ` [PATCH] Btrfs: fix arithmetic error in clone ioctl Sage Weil
2009-08-26 7:19 ` Markus Suvanto
2009-08-27 17:44 ` [PATCH]Re: The first character disappears Atila
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=4A928CEF.2060903@dpf.gov.br \
--to=atila.alr@dpf.gov.br \
--cc=linux-btrfs@vger.kernel.org \
--cc=markus.suvanto@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.