From a4330337e4ca16772672174159659f8cc80fc6ef Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 16 Dec 2010 00:27:42 +0100 Subject: [PATCH] xbps-src: cd to $MASTERDIR when executing the signal handler. --- xbps-src/xbps-src.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index 721603ded0..28cbe14a32 100644 --- a/xbps-src/xbps-src.sh.in +++ b/xbps-src/xbps-src.sh.in @@ -39,7 +39,8 @@ sighandler_exit() { # Always unmount in case we failed before! if [ -z "$in_chroot" ]; then - env MASTERDIR="${_MASTERDIR}" \ + cd ${_MASTERDIR} && \ + env MASTERDIR="${_MASTERDIR}" \ @@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-chroot-helper umount fi [ -n "$1" ] && exit $1