smdev

suckless mdev
git clone git://git.2f30.org/smdev.git
Log | Files | Refs | README | LICENSE

commit 063cb06ee9026267aa021b71360d2932c4f009bc
parent a7b24e8391c23cdaf3ab7e73d48b8410f6fe536f
Author: sin <sin@2f30.org>
Date:   Fri Aug 30 11:11:15 +0100

Until we chdir() to /dev use absolute paths

Diffstat:
config.h | 32++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/config.h b/config.h @@ -7,20 +7,20 @@ struct rule { char *path; char *cmd; } rules[] = { - { "null", "root", "root", 0666, NULL, "@chmod 666 $SMDEV" }, - { "zero", "root", "root", 0666, NULL, NULL }, - { "full", "root", "root", 0666, NULL, NULL }, - { "random", "root", "root", 0666, NULL, NULL }, - { "urandom", "root", "root", 0666, NULL, NULL }, - { "mem", "root", "root", 0640, NULL, NULL }, - { "kmem", "root", "root", 0640, NULL, NULL }, - { "console", "root", "tty", 0600, NULL, "@chmod 600 $SMDEV" }, - { "ptmx", "root", "tty", 0666, NULL, NULL }, - { "pty.*", "root", "tty", 0660, NULL, NULL }, - { "tty", "root", "tty", 0666, NULL, NULL }, - { "tty[0-9]*", "root", "tty", 0660, NULL, NULL }, - { "vcsa*[0-9]*","root", "tty", 0660, NULL, NULL }, - { "sd[a-z].*", "root", "disk", 0660, NULL, NULL }, - { "sr[0-9]*", "root", "cdrom", 0660, NULL, "@ln -sf $SMDEV cdrom" }, - { ".*", "root", "root", 0660, NULL, NULL }, + { "null", "root", "root", 0666, NULL, "@chmod 666 $SMDEV" }, + { "zero", "root", "root", 0666, NULL, NULL }, + { "full", "root", "root", 0666, NULL, NULL }, + { "random", "root", "root", 0666, NULL, NULL }, + { "urandom", "root", "root", 0666, NULL, NULL }, + { "mem", "root", "root", 0640, NULL, NULL }, + { "kmem", "root", "root", 0640, NULL, NULL }, + { "console", "root", "tty", 0600, NULL, "@chmod 600 $SMDEV" }, + { "ptmx", "root", "tty", 0666, NULL, NULL }, + { "pty.*", "root", "tty", 0660, NULL, NULL }, + { "tty", "root", "tty", 0666, NULL, NULL }, + { "tty[0-9]*", "root", "tty", 0660, NULL, NULL }, + { "vcsa*[0-9]*","root", "tty", 0660, NULL, NULL }, + { "sd[a-z].*", "root", "disk", 0660, NULL, NULL }, + { "sr[0-9]*", "root", "cdrom", 0660, NULL, "@ln -sf $SMDEV /dev/cdrom" }, + { ".*", "root", "root", 0660, NULL, NULL }, };