]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage: don't use colons in the corruption-advisory filename, since windows can...
authorBrian Warner <warner@lothar.com>
Sun, 26 Oct 2008 02:46:33 +0000 (19:46 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 26 Oct 2008 02:46:33 +0000 (19:46 -0700)
src/allmydata/storage.py

index 24bf8a007d8d6dd1599bee5432f18f4c92e47cc0..7387daefd8565208cdeebf82c13b92ae54b47222 100644 (file)
@@ -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)