added bash, mc and bc
[librewrt/.git] / packages / utils / mc / patches / 100-fix-missingsyntax.patch
diff --git a/packages/utils/mc/patches/100-fix-missingsyntax.patch b/packages/utils/mc/patches/100-fix-missingsyntax.patch
new file mode 100644 (file)
index 0000000..88a7843
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/edit/syntax.c
++++ b/edit/syntax.c
+@@ -1193,10 +1193,7 @@ edit_load_syntax (WEdit *edit, char ***p
+     r = edit_read_syntax_file (edit, pnames, f, edit ? edit->filename : 0,
+                              get_first_editor_line (edit), type);
+     if (r == -1) {
+-      edit_free_syntax_rules (edit);
+-      message (D_ERROR, _(" Load syntax file "),
+-               _(" Cannot open file %s \n %s "), f,
+-               unix_error_string (errno));
++      /* missing syntax file */
+     } else if (r) {
+       edit_free_syntax_rules (edit);
+       message (D_ERROR, _(" Load syntax file "),