shithub: riscv

Download patch

ref: eae58edb5a6f912d3fd06c96e01499ba46f730da
parent: 1d748edeaf62b2e919db1d2d5f0066dd529ea5fa
author: cinap_lenrek <[email protected]>
date: Sun Dec 18 17:27:33 EST 2022

cwfs: write /env/timezone instead of #e/timezone

--- a/sys/src/cmd/cwfs/con.c
+++ b/sys/src/cmd/cwfs/con.c
@@ -691,13 +691,13 @@
 	Off o;
 	int f, n;
 
-	f = create("#e/timezone", OEXCL|OWRITE, 0666);
+	f = create("/env/timezone", OEXCL|OWRITE, 0666);
 	if(f < 0)
 		return;
 	if(walkto(file) || con_open(FID2, 0)) {
 		print("tzinit: cannot access %s\n", file);
 		close(f);
-		remove("#e/timezone");
+		remove("/env/timezone");
 		return;
 	}
 	for(o = 0; (n = con_read(FID2, buf, o, sizeof(buf))) > 0; o += n)