Commit 01dfd88f authored by owsla's avatar owsla

Fix OverflowError on 64-bit systems when backing up symlinks with uid or gid

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@1060 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 5f0c8097
New in v1.2.9 (????/??/??) New in v1.2.9 (????/??/??)
--------------------------- ---------------------------
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)
Don't print "Fatal Error" if --check-destination-dir completed successfully. Don't print "Fatal Error" if --check-destination-dir completed successfully.
Thanks to Serge Zub for the suggestion. (Andrew Ferguson) Thanks to Serge Zub for the suggestion. (Andrew Ferguson)
......
...@@ -394,9 +394,9 @@ static PyObject * ...@@ -394,9 +394,9 @@ static PyObject *
posix_lchown(PyObject *self, PyObject *args) posix_lchown(PyObject *self, PyObject *args)
{ {
char *path = NULL; char *path = NULL;
int uid, gid; long uid, gid;
int res; int res;
if (!PyArg_ParseTuple(args, "etii:lchown", if (!PyArg_ParseTuple(args, "etll:lchown",
Py_FileSystemDefaultEncoding, &path, Py_FileSystemDefaultEncoding, &path,
&uid, &gid)) &uid, &gid))
return NULL; return NULL;
......
New in v1.3.4 (????/??/??) 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 Start using Unicode internally for filenames. This fixes Unicode support
on Windows (Josh Nisly) on Windows (Josh Nisly)
......
...@@ -394,9 +394,9 @@ static PyObject * ...@@ -394,9 +394,9 @@ static PyObject *
posix_lchown(PyObject *self, PyObject *args) posix_lchown(PyObject *self, PyObject *args)
{ {
char *path = NULL; char *path = NULL;
int uid, gid; long uid, gid;
int res; int res;
if (!PyArg_ParseTuple(args, "etii:lchown", if (!PyArg_ParseTuple(args, "etll:lchown",
Py_FileSystemDefaultEncoding, &path, Py_FileSystemDefaultEncoding, &path,
&uid, &gid)) &uid, &gid))
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment