devcons: readd dummy consctl file so telnetd has something to bind on

front
cinap_lenrek 2011-09-17 02:35:03 +02:00
parent 827b20563b
commit 0089c44663
1 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,7 @@ enum{
Qdir,
Qbintime,
Qcons,
Qconsctl,
Qcputime,
Qdrivers,
Qkmesg,
@ -353,6 +354,7 @@ static Dirtab consdir[]={
".", {Qdir, 0, QTDIR}, 0, DMDIR|0555,
"bintime", {Qbintime}, 24, 0664,
"cons", {Qcons}, 0, 0660,
"consctl", {Qconsctl}, 0, 0220,
"cputime", {Qcputime}, 6*NUMSIZE, 0444,
"drivers", {Qdrivers}, 0, 0444,
"hostdomain", {Qhostdomain}, DOMLEN, 0664,
@ -696,6 +698,9 @@ conswrite(Chan *c, void *va, long n, vlong off)
}
break;
case Qconsctl:
error(Egreg);
case Qtime:
if(!iseve())
error(Eperm);