Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/ptyfs Revert previous; it does not work with COMPAT_B...



details:   https://anonhg.NetBSD.org/src/rev/907ec73e7124
branches:  trunk
changeset: 333167:907ec73e7124
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 21 16:05:01 2014 +0000

description:
Revert previous; it does not work with COMPAT_BSDPTY, screen(1) fails because
it does a TIOCPTSNAME immediately after opening ptmx and finds an old style pty.

diffstat:

 sys/fs/ptyfs/ptyfs_vfsops.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r ff2172c50c30 -r 907ec73e7124 sys/fs/ptyfs/ptyfs_vfsops.c
--- a/sys/fs/ptyfs/ptyfs_vfsops.c       Tue Oct 21 13:44:47 2014 +0000
+++ b/sys/fs/ptyfs/ptyfs_vfsops.c       Tue Oct 21 16:05:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ptyfs_vfsops.c,v 1.54 2014/10/15 15:00:03 christos Exp $       */
+/*     $NetBSD: ptyfs_vfsops.c,v 1.55 2014/10/21 16:05:01 christos Exp $       */
 
 /*
  * Copyright (c) 1992, 1993, 1995
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.54 2014/10/15 15:00:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.55 2014/10/21 16:05:01 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -217,8 +217,7 @@
                *vpp = NULL;
                return error;
        }
-       /* Activate node only after we have grabbed device. */
-       if (type == PTYFSpts)
+       if (type == PTYFSptc)
                ptyfs_set_active(mp, minor(dev));
        return 0;
 }



Home | Main Index | Thread Index | Old Index