Catch write-lock attempts immediately if running in read-only mode rather

than depending on getting a write fail.
This commit is contained in:
Peter Wemm 1997-05-17 14:04:18 +00:00
parent 484aca02e2
commit e7905b1443

View File

@ -319,6 +319,11 @@ Writer_Lock (list)
if (noexec)
return (0);
if (readonlyfs) {
error (0, 0, "write lock failed - read-only repository");
return (1);
}
/* We only know how to do one list at a time */
if (locklist != (List *) NULL)
{