git: 9front

Download patch

ref: 091d24d526eca60d00213712720756ae0a21e16a
parent: 50df2e88080eec62a3f42aa277528bf2aa22d37a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 7 22:12:00 EST 2020

aux/timesync: open /proc/n/ctl with OWRITE, not ORDWR

--- a/sys/src/cmd/aux/timesync.c
+++ b/sys/src/cmd/aux/timesync.c
@@ -817,7 +817,7 @@
 	char buf[32];
 
 	sprint(buf, "/proc/%d/ctl", getpid());
-	fd = open(buf, ORDWR);
+	fd = open(buf, OWRITE);
 	if(fd < 0){
 		fprint(2, "can't set priority\n");
 		return;
--