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 | d9f634ea3a4b129c81074ba7b93815b2b8556491 (patch) | |
tree | fb93727b96e7bc5fcd1af9f42988afb415ba1a00 /rdiff-backup | |
parent | 4af0618d37c526ae1becb3916eab61c70084ee63 (diff) | |
download | rdiff-backup-master.tar.gz |
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/trunk@1060 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup')
-rw-r--r-- | rdiff-backup/CHANGELOG | 3 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/cmodule.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index a8573c8..ba0746c 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,9 @@ New in v1.3.4 (????/??/??) --------------------------- +Fix OverflowError on 64-bit systems when backing up symlinks with uid or gid +above INT_MAX. Thanks to Michel Le Cocq for the bug report. (Andrew Ferguson) + Start using Unicode internally for filenames. This fixes Unicode support on Windows (Josh Nisly) 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; |