xbps: patch from master to make xbps-uchroot(8) bind mount recursively.

This commit is contained in:
Juan RP 2014-11-05 16:17:47 +01:00
parent 744199b34e
commit b851cfb31d
3 changed files with 28 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# NOTE: keep this package synchronized with "srcpkgs/xbps". # NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static pkgname=xbps-static
version=0.41 version=0.41
revision=7 revision=8
bootstrap=yes bootstrap=yes
build_style=configure build_style=configure
short_desc="The XBPS package system utilities - static binaries" short_desc="The XBPS package system utilities - static binaries"

View File

@ -0,0 +1,26 @@
From 578c3add0c253fe122703783392a5cc4d6fa0e6b Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Wed, 5 Nov 2014 15:57:21 +0100
Subject: [PATCH] xbps-uchroot: mount sys/dev recursively to access to /dev/pts
(thanks chris2).
---
bin/xbps-uchroot/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/xbps-uchroot/main.c b/bin/xbps-uchroot/main.c
index e03b4ea..de87308 100644
--- bin/xbps-uchroot/main.c
+++ bin/xbps-uchroot/main.c
@@ -122,7 +122,7 @@ bindmount(uid_t ruid, const char *chrootdir, const char *dir, const char *dest)
if (fsuid_chdir(ruid, dir) == -1)
die("Couldn't chdir to %s", dir);
- if (mount(".", mountdir, NULL, MS_BIND|MS_PRIVATE, NULL) == -1)
+ if (mount(".", mountdir, NULL, MS_BIND|MS_REC|MS_PRIVATE, NULL) == -1)
die("Failed to bind mount %s at %s", dir, mountdir);
}
--
2.1.3

View File

@ -1,7 +1,7 @@
# Template file for 'xbps' # Template file for 'xbps'
pkgname=xbps pkgname=xbps
version=0.41 version=0.41
revision=7 revision=8
bootstrap=yes bootstrap=yes
build_style=configure build_style=configure
short_desc="The XBPS package system utilities" short_desc="The XBPS package system utilities"