From 520315c9c6bce487b0a975df8204f04a6e8c610e Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Fri, 17 Apr 2015 04:43:22 +0000 Subject: Tweaks utimensat/futimens handling to always update ctime, even when both atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and to correctly handle a timestamp of -1. ok millert@ --- sys/isofs/cd9660/cd9660_vnops.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/isofs/cd9660/cd9660_vnops.c') diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index 07ea2531a69..ce9d1c41cf5 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_vnops.c,v 1.71 2015/03/14 03:38:50 jsg Exp $ */ +/* $OpenBSD: cd9660_vnops.c,v 1.72 2015/04/17 04:43:20 guenther Exp $ */ /* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */ /*- @@ -94,8 +94,9 @@ cd9660_setattr(void *v) struct vattr *vap = ap->a_vap; if (vap->va_flags != VNOVAL || vap->va_uid != (uid_t)VNOVAL || - vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL || - vap->va_mtime.tv_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) + vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_nsec != VNOVAL || + vap->va_mtime.tv_nsec != VNOVAL || vap->va_mode != (mode_t)VNOVAL || + (vap->va_vaflags & VA_UTIMES_CHANGE)) return (EROFS); if (vap->va_size != VNOVAL) { switch (vp->v_type) { -- cgit v1.2.3