shithub: riscv

Download patch

ref: f5b78f452e48323484e6363d46a2aa631a956349
parent: 82adfe54e258ed20d55fb6fd8505190b1e20aa0d
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",