--- rdiff-backup-1.2.8/cmodule.c.orig	2009-03-16 15:36:21.000000000 +0100
+++ rdiff-backup-1.2.8/cmodule.c	2010-10-14 09:28:42.000000000 +0200
@@ -394,9 +394,9 @@
 posix_lchown(PyObject *self, PyObject *args)
 {
 	char *path = NULL;
-	int uid, gid;
+	long uid, gid;
 	int res;
-	if (!PyArg_ParseTuple(args, "etii:lchown",
+	if (!PyArg_ParseTuple(args, "etll:lchown",
 	                      Py_FileSystemDefaultEncoding, &path,
 	                      &uid, &gid))
 		return NULL;
