summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs/tmpfs_subr.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2019-10-17 11:23:49 +0000
committermillert <millert@openbsd.org>2019-10-17 11:23:49 +0000
commitd04cdf616e902e5e240d92ece196b3ee47bf183b (patch)
treecc97a0040b3c81540f18e03a368edcc98b0ed6a3 /sys/tmpfs/tmpfs_subr.c
parentsync (diff)
downloadwireguard-openbsd-d04cdf616e902e5e240d92ece196b3ee47bf183b.tar.xz
wireguard-openbsd-d04cdf616e902e5e240d92ece196b3ee47bf183b.zip
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@
Diffstat (limited to 'sys/tmpfs/tmpfs_subr.c')
-rw-r--r--sys/tmpfs/tmpfs_subr.c3
1 files changed, 1 insertions, 2 deletions
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;