Fixed mode of /devfs/console.

This commit is contained in:
Bruce Evans 1996-03-27 18:55:19 +00:00
parent 6ae323519c
commit 1170175e62
2 changed files with 8 additions and 20 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
* $Id: cons.c,v 1.40 1995/12/13 15:12:20 julian Exp $
* $Id: cons.c,v 1.41 1995/12/22 13:09:30 phk Exp $
*/
#include <sys/param.h>
@ -327,15 +327,9 @@ cn_drvinit(void *unused)
cdevsw_add(&dev,&cn_cdevsw,NULL);
cn_devsw_installed = 1;
#ifdef DEVFS
cn_devfs_token = devfs_add_devsw(
"/",
"console",
&cn_cdevsw,
0,
DV_CHR,
0,
0,
0640);
cn_devfs_token = devfs_add_devswf(&cn_cdevsw, 0, DV_CHR,
UID_ROOT, GID_WHEEL, 0600,
"console");
#endif
}
}

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
* $Id: cons.c,v 1.40 1995/12/13 15:12:20 julian Exp $
* $Id: cons.c,v 1.41 1995/12/22 13:09:30 phk Exp $
*/
#include <sys/param.h>
@ -327,15 +327,9 @@ cn_drvinit(void *unused)
cdevsw_add(&dev,&cn_cdevsw,NULL);
cn_devsw_installed = 1;
#ifdef DEVFS
cn_devfs_token = devfs_add_devsw(
"/",
"console",
&cn_cdevsw,
0,
DV_CHR,
0,
0,
0640);
cn_devfs_token = devfs_add_devswf(&cn_cdevsw, 0, DV_CHR,
UID_ROOT, GID_WHEEL, 0600,
"console");
#endif
}
}