From feef698b98271f1dcda9486e1b38bcf4226f4d7c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 17 Oct 2019 11:23:50 +0000 Subject: Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX. This is clearer and more consistent with the rest of the kernel. OK deraadt@ sashan@ --- sys/tmpfs/tmpfs_subr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/tmpfs') diff --git a/sys/tmpfs/tmpfs_subr.c b/sys/tmpfs/tmpfs_subr.c index d92d2f06f3a..757c90c0908 100644 --- a/sys/tmpfs/tmpfs_subr.c +++ b/sys/tmpfs/tmpfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_subr.c,v 1.22 2018/05/28 16:02:08 visa Exp $ */ +/* $OpenBSD: tmpfs_subr.c,v 1.23 2019/10/17 11:23:49 millert Exp $ */ /* $NetBSD: tmpfs_subr.c,v 1.79 2012/03/13 18:40:50 elad Exp $ */ /* @@ -139,7 +139,6 @@ tmpfs_alloc_node(tmpfs_mount_t *tmp, enum vtype type, uid_t uid, gid_t gid, nnode->tn_ctime = nnode->tn_atime; nnode->tn_mtime = nnode->tn_atime; - /* XXX pedro: we should check for UID_MAX and GID_MAX instead. */ KASSERT(uid != VNOVAL && gid != VNOVAL && mode != VNOVAL); nnode->tn_uid = uid; -- cgit v1.2.3