diff options
author | robert <robert@FreeBSD.org> | 2002-02-27 16:47:27 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-02-27 16:47:27 +0000 |
commit | b8e607ed843c9be41ab025480d4d09f767463f3b (patch) | |
tree | c95d4734171ed9828f6b3ff90b1b709d314e8aca /sys/compat/linux | |
parent | a441b857b6d8cb70a997637312989e8a04b78462 (diff) | |
download | FreeBSD-src-b8e607ed843c9be41ab025480d4d09f767463f3b.zip FreeBSD-src-b8e607ed843c9be41ab025480d4d09f767463f3b.tar.gz |
Use the updated getcredhostname() function.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 562b37f..031c406 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -702,8 +702,7 @@ linux_newuname(struct thread *td, struct linux_newuname_args *args) bzero(&utsname, sizeof(utsname)); strncpy(utsname.sysname, osname, LINUX_MAX_UTSNAME-1); - strncpy(utsname.nodename, getcredhostname(td->td_ucred), - LINUX_MAX_UTSNAME-1); + getcredhostname(td->td_ucred, utsname.nodename, LINUX_MAX_UTSNAME-1); strncpy(utsname.release, osrelease, LINUX_MAX_UTSNAME-1); strncpy(utsname.version, version, LINUX_MAX_UTSNAME-1); strncpy(utsname.machine, machine, LINUX_MAX_UTSNAME-1); |