Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 2 Jan 2002 19:01:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 2 Jan 2002 19:00:53 -0500 Received: from www.transvirtual.com ([206.14.214.140]:29203 "EHLO www.transvirtual.com") by vger.kernel.org with ESMTP id ; Wed, 2 Jan 2002 19:00:20 -0500 Date: Wed, 2 Jan 2002 15:59:41 -0800 (PST) From: James Simmons To: Linus Torvalds cc: Linux Kernel Mailing List Subject: [PATCH] pre6 tty_io.c and devfs broken Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org If you have devfs on tty_io.c doesn't compile. This patch fixes this problem. . --- |o_o | |:_/ | Give Micro$oft the Bird!!!! // \ \ Use Linux!!!! (| | ) /'_ _/`\ ___)=(___/ --- /usr/src/linux-2.5.2-pre6/drivers/char/tty_io.c Wed Jan 2 14:07:54 2002 +++ tty_io.c Wed Jan 2 16:53:20 2002 @@ -2006,15 +2006,11 @@ int idx = minor - driver->minor_start; char buf[32]; - switch (device) { - case TTY_DEV: - case PTMX_DEV: + if (IS_TTY_DEV(device) || IS_PTMX_DEV(device)) + mode |= S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; + else { + if (driver->major == PTY_MASTER_MAJOR) mode |= S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; - break; - default: - if (driver->major == PTY_MASTER_MAJOR) - mode |= S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; - break; } if ( (minor < driver->minor_start) || (minor >= driver->minor_start + driver->num) ) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/