mc: add a patch to fix the annoying error message about missing Syntax file (#2133)
[openwrt/svn-archive/archive.git] / utils / mc / patches / 100-fix-missingsyntax.patch
1 Index: mc-4.6.1/edit/syntax.c
2 ===================================================================
3 --- mc-4.6.1.orig/edit/syntax.c 2007-07-26 17:35:14.000000000 +0200
4 +++ mc-4.6.1/edit/syntax.c 2007-07-26 17:35:14.000000000 +0200
5 @@ -1113,13 +1113,8 @@
6 f = catstrs (home_dir, SYNTAX_FILE, (char *) NULL);
7 r = edit_read_syntax_file (edit, names, f, edit ? edit->filename : 0,
8 get_first_editor_line (edit), type);
9 - if (r == -1) {
10 - edit_free_syntax_rules (edit);
11 - message (D_ERROR, _(" Load syntax file "),
12 - _(" Cannot open file %s \n %s "), f,
13 - unix_error_string (errno));
14 + if (r == -1)
15 return;
16 - }
17 if (r) {
18 edit_free_syntax_rules (edit);
19 message (D_ERROR, _(" Load syntax file "),