shithub: riscv

Download patch

ref: 6cd063199d1ab6892c11f74b4b80a16087f62847
parent: a75eb317520c72ab129ba2164550d68ed07ad560
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri May 20 17:08:10 EDT 2011

devaudio: audiostat perms

--- a/sys/src/9/port/devaudio.c
+++ b/sys/src/9/port/devaudio.c
@@ -37,10 +37,10 @@
 
 static Dirtab audiodir[] = {
 	".",	{Qdir, 0, QTDIR},	0,	DMDIR|0555,
-	"audio",	{Qaudio},			0,	0666,
-	"audioctl",	{Qaudioctl},			0,	0666,
-	"audiostat",	{Qaudiostatus},			0,	0666,
-	"volume",	{Qvolume},			0,	0666,
+	"audio",	{Qaudio},	0,	0666,
+	"audioctl",	{Qaudioctl},	0,	0666,
+	"audiostat",	{Qaudiostatus},	0,	0444,
+	"volume",	{Qvolume},	0,	0666,
 };