aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
commit8aef171243894d9b06e5ac740bfa5e8686fc4c1a (patch)
treef908d89518cbc0f801b11f1750100b49454326a1 /sys/kern/kern_exec.c
parent7191deb01ed2d308d347683ba7c8e5ea66bab570 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 2f3684874595..bb69fb6e959f 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.93 1999/01/06 23:05:38 julian Exp $
+ * $Id: kern_exec.c,v 1.94 1999/01/27 21:49:55 dillon Exp $
*/
#include <sys/param.h>
@@ -255,8 +255,8 @@ interpret:
* Don't honor setuid/setgid if the filesystem prohibits it or if
* the process is being traced.
*/
- if ((attr.va_mode & VSUID && p->p_ucred->cr_uid != attr.va_uid ||
- attr.va_mode & VSGID && p->p_ucred->cr_gid != attr.va_gid) &&
+ if ((((attr.va_mode & VSUID) && p->p_ucred->cr_uid != attr.va_uid) ||
+ ((attr.va_mode & VSGID) && p->p_ucred->cr_gid != attr.va_gid)) &&
(imgp->vp->v_mount->mnt_flag & MNT_NOSUID) == 0 &&
(p->p_flag & P_TRACED) == 0) {
/*