Fix (hack?) to get 0.7.2 to work for me

Daniel Robbins
16 Apr 2002 22:02:55 -0600

Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi All,

First of all, I *love* rdiff-backup and it was just the tool I was
looking for.  I needed features in 0.7.2 but found that I couldn't
backup remotely -- if I ran rdiff-backup --server, I'd get the following

$ ./rdiff-backup --server
Traceback (most recent call last):
  File "./rdiff-backup", line 5717, in ?
  File "./rdiff-backup", line 5462, in Main
  File "./rdiff-backup", line 5431, in misc_setup
    rps[0].conn.Globals.set_select(1, rps[0], self.select_opts)
IndexError: list index out of range

I applied a simple fix that worked for me, but someone like Ben should
verify that it doesn't cause any unwanted side-effects.  I'm attaching
the patch to this email.  (It's a simple two-liner)

Best Regards,

Daniel Robbins                                  <>
Chief Architect/President              
Gentoo Technologies, Inc.

Content-Disposition: attachment; filename=my.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=my.diff; charset=ISO-8859-1

--- rdiff-backup	Tue Apr 16 22:41:46 2002
+++ /usr/local/bin/rdiff-backup	Tue Apr 16 16:43:07 2002
@@ -5428,6 +5428,8 @@
 			for rp in rps: rp.setdata() # Update with userinfo
+		if not rps:
+			return
 		rps[0].conn.Globals.set_select(1, rps[0], self.select_opts)
 		if len(rps) =3D=3D 2:
 			rps[1].conn.Globals.set_select(None, rps[1],