git: 9front

Download patch

ref: 68790fa29627262a31301c55af35ee48b07d4a1c
parent: ac7d3b519a8c87d17fc16fd269cba1b4729d9a15
author: Alex Musolino <alex@musolino.id.au>
date: Sun Mar 12 04:18:39 EDT 2023

imap4d: add entry to detect file locked errors on hjfs

Hjfs reports "file locked" whilst cwfs reports "file is locked".
This whole approach is a bit crappy, but this change will get
us (me) by for now.

--- a/sys/src/cmd/upas/imap4d/utils.c
+++ b/sys/src/cmd/upas/imap4d/utils.c
@@ -87,6 +87,7 @@
 static char *etab[] = {
 	"not found",
 	"does not exist",
+	"file locked",		// hjfs
 	"file is locked",
 	"exclusive lock",
 	"already exists",
--