[sysadmin-bin] ftpadmin: correctly determine basedir for Solaris tar files
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] ftpadmin: correctly determine basedir for Solaris tar files
- Date: Fri, 8 Apr 2011 20:02:04 +0000 (UTC)
commit d92863f9644a69bb00dc63f9b2f910865e52c3d0
Author: Olav Vitters <olav vitters nl>
Date: Fri Apr 8 22:01:59 2011 +0200
ftpadmin: correctly determine basedir for Solaris tar files
ftpadmin | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ftpadmin b/ftpadmin
index 0b5146a..6f59582 100755
--- a/ftpadmin
+++ b/ftpadmin
@@ -334,7 +334,7 @@ class TarInfo(BasicInfo):
if info.isdir():
uniq_dir = "%s/" % info.name
else:
- uniq_dir = os.path.basename(info.name.replace("/",os.sep)) if "/" in info.name else None
+ uniq_dir = "%s/" % os.path.basename(info.name.replace("/",os.sep)) if "/" in info.name else None
elif uniq_dir is not None and not info.name.startswith(uniq_dir):
uniq_dir = None
if progress:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]