vi: allow writing to another file if this one is readonly
Alison Winters
alisonatwork at outlook.com
Tue Mar 2 06:32:52 UTC 2021
---
editors/vi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/editors/vi.c b/editors/vi.c
index abc0aeae8..8bb126d14 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2824,7 +2824,7 @@ static void colon(char *buf)
fn = args;
}
# if ENABLE_FEATURE_VI_READONLY
- if (readonly_mode && !useforce) {
+ else if (readonly_mode && !useforce) {
status_line_bold("'%s' is read only", fn);
goto ret;
}
--
2.30.1
More information about the busybox
mailing list