From 5fd663328944fa390701527aaaa244a64ae4ecc2 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 25 Oct 2008 19:46:33 -0700 Subject: [PATCH] storage: don't use colons in the corruption-advisory filename, since windows can't tolerate them --- src/allmydata/storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py index 24bf8a00..7387daef 100644 --- 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) -- 2.45.2