diff options
Diffstat (limited to 'sys/compat/hpux/hpux_compat.c')
-rw-r--r-- | sys/compat/hpux/hpux_compat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/hpux/hpux_compat.c b/sys/compat/hpux/hpux_compat.c index 28bfa011be6..22a1f6280a0 100644 --- a/sys/compat/hpux/hpux_compat.c +++ b/sys/compat/hpux/hpux_compat.c @@ -1,5 +1,5 @@ -/* $OpenBSD: hpux_compat.c,v 1.9 1997/04/16 09:18:02 downsj Exp $ */ -/* $NetBSD: hpux_compat.c,v 1.31 1997/04/01 19:58:59 scottr Exp $ */ +/* $OpenBSD: hpux_compat.c,v 1.10 1997/07/06 07:27:59 downsj Exp $ */ +/* $NetBSD: hpux_compat.c,v 1.35 1997/05/08 16:19:48 mycroft Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -417,6 +417,7 @@ hpux_sys_utssys(p, v, retval) int error; struct hpux_utsname ut; extern char ostype[], hostname[], osrelease[], version[]; + extern char machine[]; switch (SCARG(uap, request)) { /* uname */ @@ -437,8 +438,8 @@ hpux_sys_utssys(p, v, retval) strncpy(ut.version, version, sizeof(ut.version)); ut.version[sizeof(ut.version) - 1] = '\0'; - /* Fill in machine-dependent part of uname. */ - hpux_cpu_uname(&ut); + strncpy(ut.machine, machine, sizeof(ut.machine)); + ut.machine[sizeof(ut.machine) - 1] = '\0'; error = copyout((caddr_t)&ut, (caddr_t)SCARG(uap, uts), sizeof(ut)); @@ -1189,7 +1190,6 @@ hpux_sys_getaccess(p, v, retval) *retval |= R_OK; if (vn_writechk(vp) == 0 && VOP_ACCESS(vp, VWRITE, cred, p) == 0) *retval |= W_OK; - /* XXX we return X_OK for root on VREG even if not */ if (VOP_ACCESS(vp, VEXEC, cred, p) == 0) *retval |= X_OK; vput(vp); |