diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2019-10-17 11:23:50 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2019-10-17 11:23:50 +0000 |
commit | feef698b98271f1dcda9486e1b38bcf4226f4d7c (patch) | |
tree | 6ae8c0f87d9ea7b4fac9f69699ab026e6b63b422 /sys/tmpfs | |
parent | 45d493c4805c28bf97e836d65a28e9b31ac61fe6 (diff) |
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')
-rw-r--r-- | sys/tmpfs/tmpfs_subr.c | 3 |
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; |