- if (error = suser(p->p_ucred, &p->p_acflag))
- return (error);
- if (uap->len > sizeof (hostname) - 1)
- return (EINVAL);
- hostnamelen = uap->len;
- error = copyin((caddr_t)uap->hostname, hostname, uap->len);
- hostname[hostnamelen] = 0;
- return (error);