diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-13 06:16:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-13 06:16:28 +0000 |
commit | eb3ee72710c56798e41312420cbeb665cd8543da (patch) | |
tree | 4531e69ebe545e56b2f81ff6601859c140e42408 /sys/compat | |
parent | d038291919d92cfdd5d01fb17ad1a7f84755b3ae (diff) |
Fix test for NULL arg in svr4_utime() (PR#4418); pk
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/svr4/svr4_stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_stat.c b/sys/compat/svr4/svr4_stat.c index 1b785dff2d9..fb083df2f1b 100644 --- a/sys/compat/svr4/svr4_stat.c +++ b/sys/compat/svr4/svr4_stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_stat.c,v 1.9 1997/10/08 14:57:31 kstailey Exp $ */ +/* $OpenBSD: svr4_stat.c,v 1.10 1997/11/13 06:16:27 deraadt Exp $ */ /* $NetBSD: svr4_stat.c,v 1.21 1996/04/22 01:16:07 christos Exp $ */ /* @@ -569,7 +569,7 @@ svr4_sys_utime(p, v, retval) SVR4_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path)); SCARG(&ap, path) = SCARG(uap, path); - if (SCARG(uap, ubuf) == NULL) { + if (SCARG(uap, ubuf) != NULL) { if ((error = copyin(SCARG(uap, ubuf), &ub, sizeof(ub))) != 0) return error; tbuf[0].tv_sec = ub.actime; |