diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2010-01-16 18:47:12 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2010-01-16 18:47:12 +0000 |
commit | 24bb653b12d939cb4c3b6598ad0b793e5f5399ff (patch) | |
tree | a352aff638f1a068c04d0eef4778e1ba93bf9db6 /rdiff-backup/rdiff_backup/cmodule.c | |
parent | 5eb918a3ae80744907ee8ea2dc8cf7460f973dfb (diff) | |
download | rdiff-backup-r1-2.tar.gz |
Fix OverflowError on 64-bit systems when backing up symlinks with uid or gidr1-2
above INT_MAX. This fix is the same as r77008 in the Python source.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r1-2@1060 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/cmodule.c')
-rw-r--r-- | rdiff-backup/rdiff_backup/cmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/cmodule.c b/rdiff-backup/rdiff_backup/cmodule.c index ed82ed4..ea3f129 100644 --- a/rdiff-backup/rdiff_backup/cmodule.c +++ b/rdiff-backup/rdiff_backup/cmodule.c @@ -394,9 +394,9 @@ static PyObject * 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; |