Date: Wednesday, December 25, 2013 @ 13:18:54 Author: allan Revision: 202700
upgpkg: fakechroot 2.17.2-1 upstream update, remove patch applied upstream Modified: fakechroot/trunk/PKGBUILD Deleted: fakechroot/trunk/fakechroot-2.17.1-sanitize-chroot-path.patch ----------------------------------------------+ PKGBUILD | 17 ++------- fakechroot-2.17.1-sanitize-chroot-path.patch | 44 ------------------------- 2 files changed, 5 insertions(+), 56 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-12-25 09:26:35 UTC (rev 202699) +++ PKGBUILD 2013-12-25 12:18:54 UTC (rev 202700) @@ -3,24 +3,17 @@ # Contributor: Aaron Griffin <[email protected]> pkgname=fakechroot -pkgver=2.17.1 -pkgrel=2 +pkgver=2.17.2 +pkgrel=1 pkgdesc="Gives a fake chroot environment" arch=('i686' 'x86_64') url="https://github.com/dex4er/fakechroot/wiki" license=('LGPL') install=fakechroot.install -source=(https://github.com/dex4er/fakechroot/archive/${pkgver}.tar.gz - fakechroot-2.17.1-sanitize-chroot-path.patch) -md5sums=('3c17eff0c854a77f98b4d0db086bc5bc' - 'fadc56f4b4dd67ba362c5ac41f5cb293') +source=(https://github.com/dex4er/fakechroot/archive/${pkgver}.tar.gz) +md5sums=('e614f62972efa4654fc780ae7e4affad') -prepare() { - cd ${srcdir}/${pkgname}-${pkgver} - patch -p1 -i ${srcdir}/fakechroot-2.17.1-sanitize-chroot-path.patch -} - build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --sbindir=/usr/bin \ @@ -30,7 +23,7 @@ check() { cd ${srcdir}/${pkgname}-${pkgver} - make -j1 check + make check } package() { Deleted: fakechroot-2.17.1-sanitize-chroot-path.patch =================================================================== --- fakechroot-2.17.1-sanitize-chroot-path.patch 2013-12-25 09:26:35 UTC (rev 202699) +++ fakechroot-2.17.1-sanitize-chroot-path.patch 2013-12-25 12:18:54 UTC (rev 202700) @@ -1,44 +0,0 @@ -From 922b9be90ccce8f5b01339864f499f6d77505c5f Mon Sep 17 00:00:00 2001 -From: Andrew Gregory <[email protected]> -Date: Fri, 13 Dec 2013 12:31:00 -0500 -Subject: [PATCH] chroot: sanitize path - -path was not being sanitized if it started with '/' causing chroot calls -to fail when path ended with '/'. - -Signed-off-by: Andrew Gregory <[email protected]> ---- - src/chroot.c | 3 +++ - test/t/chroot.t | 2 +- - 2 files changed, 4 insertions(+), 1 deletion(-) - -diff --git a/src/chroot.c b/src/chroot.c -index 9e15ff5..7917a9a 100644 ---- a/src/chroot.c -+++ b/src/chroot.c -@@ -76,6 +76,9 @@ - else { - if (*path == '/') { - expand_chroot_rel_path(path); -+ strlcpy(tmp, path, FAKECHROOT_PATH_MAX); -+ dedotdot(tmpptr); -+ path = tmpptr; - } - else { - snprintf(tmp, FAKECHROOT_PATH_MAX, "%s/%s", cwd, path); -diff --git a/test/t/chroot.t b/test/t/chroot.t -index e532a6f..286b863 100755 ---- a/test/t/chroot.t -+++ b/test/t/chroot.t -@@ -14,7 +14,7 @@ for chroot in chroot fakechroot; do - skip $(( $tap_plan / 2 )) "not root" - else - -- for testtree in testtree2 /testtree2 ./testtree2 /./testtree2 testtree2/. testtree2/./.; do -+ for testtree in testtree2 /testtree2 ./testtree2 /./testtree2 testtree2/. testtree2/./. testtree2/; do - t=`$srcdir/$chroot.sh testtree /usr/sbin/chroot $testtree /bin/cat /CHROOT 2>&1` - test "$t" = "testtree/testtree2" || not - ok "$chroot chroot $testtree:" $t --- -1.8.5.1 -
