diff -Nru trash-cli-0.12.9.14/debian/changelog trash-cli-0.12.9.14/debian/changelog --- trash-cli-0.12.9.14/debian/changelog 2014-08-31 12:52:54.000000000 +0000 +++ trash-cli-0.12.9.14/debian/changelog 2016-11-26 10:41:41.000000000 +0000 @@ -1,3 +1,12 @@ +trash-cli (0.12.9.14-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix segfault in getmntent (Closes: #843870). + * Fix debian/watch. + * Add B-D: dh-python. + + -- Andrey Rahmatullin Sat, 26 Nov 2016 15:41:41 +0500 + trash-cli (0.12.9.14-2) unstable; urgency=medium * Fix Vcs URLs diff -Nru trash-cli-0.12.9.14/debian/control trash-cli-0.12.9.14/debian/control --- trash-cli-0.12.9.14/debian/control 2014-08-31 12:52:54.000000000 +0000 +++ trash-cli-0.12.9.14/debian/control 2016-11-26 10:41:41.000000000 +0000 @@ -5,6 +5,7 @@ Uploaders: Javi Merino Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), + dh-python, python-setuptools, python-nose, python-mock, diff -Nru trash-cli-0.12.9.14/debian/patches/fix-getmntent-segfault.patch trash-cli-0.12.9.14/debian/patches/fix-getmntent-segfault.patch --- trash-cli-0.12.9.14/debian/patches/fix-getmntent-segfault.patch 1970-01-01 00:00:00.000000000 +0000 +++ trash-cli-0.12.9.14/debian/patches/fix-getmntent-segfault.patch 2016-11-26 10:40:22.000000000 +0000 @@ -0,0 +1,18 @@ +Description: Fix segfaults when calling getmntent and fclose +Origin: other, https://github.com/andreafrancia/trash-cli/issues/52 +Bug: https://github.com/andreafrancia/trash-cli/issues/52 +Bug-Debian: https://bugs.debian.org/843870 +Last-Update: 2016-11-26 + +--- a/trashcli/list_mount_points.py 2015-06-16 22:07:28.911957504 +0900 ++++ b/trashcli/list_mount_points.py 2015-06-16 22:08:36.777137116 +0900 +@@ -56,7 +56,9 @@ + + libc = cdll.LoadLibrary(libc_name) + libc.getmntent.restype = POINTER(mntent_struct) ++ libc.getmntent.argtypes = [c_void_p] + libc.fopen.restype = c_void_p ++ libc.fclose.argtypes = [c_void_p] + + f = libc.fopen("/proc/mounts", "r") + if f==None: diff -Nru trash-cli-0.12.9.14/debian/patches/series trash-cli-0.12.9.14/debian/patches/series --- trash-cli-0.12.9.14/debian/patches/series 2014-08-31 12:52:54.000000000 +0000 +++ trash-cli-0.12.9.14/debian/patches/series 2016-11-26 10:40:30.000000000 +0000 @@ -1 +1,2 @@ 0001-Fix-should_output_info_for_multiple_files.patch +fix-getmntent-segfault.patch diff -Nru trash-cli-0.12.9.14/debian/watch trash-cli-0.12.9.14/debian/watch --- trash-cli-0.12.9.14/debian/watch 2014-08-31 12:52:54.000000000 +0000 +++ trash-cli-0.12.9.14/debian/watch 2016-11-26 10:41:41.000000000 +0000 @@ -1,2 +1,2 @@ version=3 -http://githubredir.debian.net/github/andreafrancia/trash-cli/(.*).tar.gz +https://github.com/andreafrancia/trash-cli/tags .*/(.*)\.tar\.gz