summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_tame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c
index 6e93d645fcb..cfe77fc4fff 100644
--- a/sys/kern/kern_tame.c
+++ b/sys/kern/kern_tame.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tame.c,v 1.25 2015/08/23 19:32:20 deraadt Exp $ */
+/* $OpenBSD: kern_tame.c,v 1.26 2015/08/23 21:30:04 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -423,7 +423,7 @@ tame_namei(struct proc *p, char *origpath)
*/
if ((p->p_p->ps_tame & _TM_TMPPATH) &&
(p->p_tame_syscall == SYS_unlink) &&
- strncmp(path, "/tmp/", sizeof("/tmp") - 1) == 0) {
+ strncmp(path, "/tmp/", sizeof("/tmp/") - 1) == 0) {
return (0);
}