diff options
Diffstat (limited to 'sys/i386/ibcs2/ibcs2_stat.c')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_stat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/ibcs2/ibcs2_stat.c b/sys/i386/ibcs2/ibcs2_stat.c index 148da17..cd260dd 100644 --- a/sys/i386/ibcs2/ibcs2_stat.c +++ b/sys/i386/ibcs2/ibcs2_stat.c @@ -34,6 +34,7 @@ #include <sys/file.h> #include <sys/stat.h> #include <sys/filedesc.h> +#include <sys/jail.h> #include <sys/kernel.h> #include <sys/mount.h> #include <sys/vnode.h> @@ -233,7 +234,8 @@ ibcs2_utssys(td, uap) IBCS2_UNAME_RELEASE, sizeof(sut.release) - 1); strncpy(sut.version, IBCS2_UNAME_VERSION, sizeof(sut.version) - 1); - strncpy(machine_name, hostname, sizeof(machine_name) - 1); + strncpy(machine_name, getcredhostname(td->td_ucred), + sizeof(machine_name) - 1); machine_name[sizeof(machine_name) - 1] = 0; p = index(machine_name, '.'); if ( p ) |