projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f21f7c
)
storage: don't use colons in the corruption-advisory filename, since windows can...
author
Brian Warner
<warner@lothar.com>
Sun, 26 Oct 2008 02:46:33 +0000
(19:46 -0700)
committer
Brian Warner
<warner@lothar.com>
Sun, 26 Oct 2008 02:46:33 +0000
(19:46 -0700)
src/allmydata/storage.py
patch
|
blob
|
history
diff --git
a/src/allmydata/storage.py
b/src/allmydata/storage.py
index 24bf8a007d8d6dd1599bee5432f18f4c92e47cc0..7387daefd8565208cdeebf82c13b92ae54b47222 100644
(file)
--- a/
src/allmydata/storage.py
+++ b/
src/allmydata/storage.py
@@
-1223,8
+1223,9
@@
class StorageServer(service.MultiService, Referenceable):
fileutil.make_dirs(self.corruption_advisory_dir)
now = time_format.iso_utc(sep="T")
si_s = base32.b2a(storage_index)
+ # windows can't handle colons in the filename
fn = os.path.join(self.corruption_advisory_dir,
- "%s--%s-%d" % (now, si_s, shnum))
+ "%s--%s-%d" % (now, si_s, shnum))
.replace(":","")
f = open(fn, "w")
f.write("report: Share Corruption\n")
f.write("type: %s\n" % share_type)