diff --git a/sys/fs/ptyfs/ptyfs.h b/sys/fs/ptyfs/ptyfs.h index 053273ae06b6..960609d055aa 100644 --- a/sys/fs/ptyfs/ptyfs.h +++ b/sys/fs/ptyfs/ptyfs.h @@ -1,4 +1,4 @@ -/* $NetBSD: ptyfs.h,v 1.8 2009/03/15 16:43:55 christos Exp $ */ +/* $NetBSD: ptyfs.h,v 1.9 2012/09/18 21:33:55 christos Exp $ */ /* * Copyright (c) 1993 @@ -124,11 +124,6 @@ struct ptyfs_args { #define PTYFS_ARGSVERSION 2 -#define PTYFSMNT_CHROOT 0x01 - -#define PTYFSMNT_BITS "\177\20" \ - "b\00chroot\0" - /* * Kernel stuff follows */ diff --git a/sys/fs/ptyfs/ptyfs_vfsops.c b/sys/fs/ptyfs/ptyfs_vfsops.c index 40733c3edc93..4dc7a13ef9fe 100644 --- a/sys/fs/ptyfs/ptyfs_vfsops.c +++ b/sys/fs/ptyfs/ptyfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ptyfs_vfsops.c,v 1.42 2010/01/08 11:35:09 pooka Exp $ */ +/* $NetBSD: ptyfs_vfsops.c,v 1.43 2012/09/18 21:33:55 christos Exp $ */ /* * Copyright (c) 1992, 1993, 1995 @@ -38,7 +38,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.42 2010/01/08 11:35:09 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.43 2012/09/18 21:33:55 christos Exp $"); #include #include @@ -104,8 +104,7 @@ ptyfs__getpath(struct lwp *l, const struct mount *mp) struct ptyfsmount *pmnt = mp->mnt_data; rv = mp->mnt_stat.f_mntonname; - if (cwdi->cwdi_rdir == NULL || - (pmnt->pmnt_flags & PTYFSMNT_CHROOT) == 0) + if (cwdi->cwdi_rdir == NULL) return rv; buf = malloc(MAXBUF, M_TEMP, M_WAITOK);