Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/kern/sysvmsg Be more careful when sanity checkin...
details: https://anonhg.NetBSD.org/src/rev/d034b2a2fca7
branches: trunk
changeset: 475741:d034b2a2fca7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Aug 24 23:03:03 1999 +0000
description:
Be more careful when sanity checking the message queue mode.
diffstat:
regress/sys/kern/sysvmsg/msgtest.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0e320636e10f -r d034b2a2fca7 regress/sys/kern/sysvmsg/msgtest.c
--- a/regress/sys/kern/sysvmsg/msgtest.c Tue Aug 24 23:01:56 1999 +0000
+++ b/regress/sys/kern/sysvmsg/msgtest.c Tue Aug 24 23:03:03 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msgtest.c,v 1.3 1999/08/24 22:36:33 thorpej Exp $ */
+/* $NetBSD: msgtest.c,v 1.4 1999/08/24 23:03:03 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -268,7 +268,7 @@
printf("PERM: uid %d, gid %d, cuid %d, cgid %d, mode 0%o\n",
mp->msg_perm.uid, mp->msg_perm.gid,
mp->msg_perm.cuid, mp->msg_perm.cgid,
- mp->msg_perm.mode);
+ mp->msg_perm.mode & 0777);
printf("qnum %lu, qbytes %lu, lspid %d, lrpid %d\n",
mp->msg_qnum, (u_long)mp->msg_qbytes, mp->msg_lspid,
@@ -288,7 +288,7 @@
if (mp->msg_perm.gid != gid || mp->msg_perm.cgid != gid)
errx(1, "gid mismatch");
- if (mp->msg_perm.mode != mode)
+ if ((mp->msg_perm.mode & 0777) != mode)
errx(1, "mode mismatch");
}
Home |
Main Index |
Thread Index |
Old Index