From 31becc7692e33adeb1b69fcef32d6bb9e706ac2b Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Sun, 14 Jan 2007 16:07:01 +0000 Subject: MFp4 (112705): Inherit setting of the default emulation version to the jails. Pointed out by: jhb Submitted by: rdivacky --- sys/compat/linux/linux_mib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/compat/linux/linux_mib.c') diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c index ac5774e6f7b6..095b5ee67118 100644 --- a/sys/compat/linux/linux_mib.c +++ b/sys/compat/linux/linux_mib.c @@ -233,7 +233,7 @@ linux_use26(struct thread *td) { struct prison *pr; struct linux_prison *lpr; - int use26 = 0; /* defaults to off */ + int use26 = linux_use_linux26; pr = td->td_ucred->cr_prison; if (pr != NULL) { @@ -241,8 +241,7 @@ linux_use26(struct thread *td) lpr = (struct linux_prison *)pr->pr_linux; use26 = lpr->pr_use_linux26; } - } else - use26 = linux_use_linux26; + } return (use26); } -- cgit v1.3