From 14fe5c6fb20993ff7de47f56cef89e6fd2dc6729 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 25 Aug 2008 12:07:00 +0200 Subject: Improving check for a mounted chroot/dev/pts to cover all terminals, not just the 0th (Closes: #459697, #459779). --- helpers/lh_chroot_devpts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/lh_chroot_devpts b/helpers/lh_chroot_devpts index 0cdb280c8..f59e91f18 100755 --- a/helpers/lh_chroot_devpts +++ b/helpers/lh_chroot_devpts @@ -72,7 +72,7 @@ case "${1}" in # Unmounting /dev/pts if [ "${LH_USE_FAKEROOT}" != "enabled" ] then - if [ -e chroot/dev/pts/0 ] + if Find_files chroot/dev/pts/* then ${LH_ROOT_COMMAND} umount chroot/dev/pts fi -- cgit v1.2.3