Still some strange problems

Ben Escoto bescoto@stanford.edu
Mon, 24 Jun 2002 11:27:03 -0700


--==_Exmh_1346883037P
Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0"
Content-Id: <26703.1024943210.0@folly.Stanford.EDU>

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <26703.1024943210.1@folly.Stanford.EDU>

>>>>> "VA" == ambra  <ambra@ambrasoft.com>
>>>>> wrote the following on Wed, 19 Jun 2002 20:34:08 -0400

  VA> I forgot to write that it will back up ONLY /etc/master.passwd
  VA> and ignore all those other directories to be backed up...  It
  VA> has worked in previous versions

Ok, I found the bug.  Thanks for the heads-up.  It affects all the
regular expression/globbing type selection statements when the source
directory is root ("/").  It'll be fixed in 0.9.2 or here is a patch:


--
Ben Escoto


------- =_aaaaaaaaaa0
Content-Type: text/patch; charset="us-ascii"
Content-ID: <26703.1024943210.2@folly.Stanford.EDU>

--- rpath.py.old      Wed Jun 19 12:17:20 2002
+++ rpath.py    Mon Jun 24 11:17:07 2002
@@ -433,7 +433,9 @@
                self.conn = connection
                self.index = index
                self.base = base
-               if base is not None: self.path = "/".join((base,) + index)
+               if base is not None:
+                       if base == "/": self.path = "/" + "/".join(index)
+                       else: self.path = "/".join((base,) + index)
                self.file = None
                if data or base is None: self.data = data
                else: self.data = self.conn.C.make_file_dict(self.path)

------- =_aaaaaaaaaa0--

--==_Exmh_1346883037P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Exmh version 2.5 01/15/2001

iD8DBQE9F2Rz+owuOvknOnURAi6KAJ9qkb2Hdys7NGSzNXOFRphN1ieczwCgjGeK
a/0WpW6NXFuvYFMJ7TSPc4w=
=Ol+g
-----END PGP SIGNATURE-----

--==_Exmh_1346883037P--