Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/ptyfs Remove compat code that hard-codes default grou...
details: https://anonhg.NetBSD.org/src/rev/8cc44f2df915
branches: trunk
changeset: 580854:8cc44f2df915
user: christos <christos%NetBSD.org@localhost>
date: Wed May 11 17:38:54 2005 +0000
description:
Remove compat code that hard-codes default group and mode for pty creation.
Hi Matt!
diffstat:
sys/fs/ptyfs/ptyfs_vfsops.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 42a4a595399d -r 8cc44f2df915 sys/fs/ptyfs/ptyfs_vfsops.c
--- a/sys/fs/ptyfs/ptyfs_vfsops.c Wed May 11 16:55:31 2005 +0000
+++ b/sys/fs/ptyfs/ptyfs_vfsops.c Wed May 11 17:38:54 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptyfs_vfsops.c,v 1.6 2005/03/29 02:41:05 thorpej Exp $ */
+/* $NetBSD: ptyfs_vfsops.c,v 1.7 2005/05/11 17:38:54 christos Exp $ */
/*
* Copyright (c) 1992, 1993, 1995
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.6 2005/03/29 02:41:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.7 2005/05/11 17:38:54 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -214,9 +214,10 @@
if (args.version != PTYFS_ARGSVERSION)
return EINVAL;
} else {
- /* Compat code; remove and return an error */
- args.gid = 4; /* XXX tty gid */
- args.mode = S_IRUSR|S_IWUSR|S_IWGRP;
+ /*
+ * Arguments are mandatory.
+ */
+ return EINVAL;
}
pmnt = malloc(sizeof(struct ptyfsmount), M_UFSMNT, M_WAITOK);
Home |
Main Index |
Thread Index |
Old Index