openbsd-ports/misc/mc/patches/patch-src_diffviewer_ydiff_c
robert 7cffae0d2c use GNU diff for diffing files as mc uses some opts that are
not available in diff(1); from Alessandro DE LAURENZIS
2015-11-22 14:21:33 +00:00

13 lines
674 B
Plaintext

$OpenBSD: patch-src_diffviewer_ydiff_c,v 1.1 2015/11/22 14:21:33 robert Exp $
--- src/diffviewer/ydiff.c.orig Sun Nov 22 15:17:30 2015
+++ src/diffviewer/ydiff.c Sun Nov 22 15:17:43 2015
@@ -820,7 +820,7 @@ dff_execute (const char *args, const char *extra, cons
/* escape potential $ to avoid shell variable substitutions in popen() */
file1_esc = strutils_shell_escape (file1);
file2_esc = strutils_shell_escape (file2);
- cmd = g_strdup_printf ("diff %s %s %s %s %s", args, extra, opt, file1_esc, file2_esc);
+ cmd = g_strdup_printf ("gdiff %s %s %s %s %s", args, extra, opt, file1_esc, file2_esc);
g_free (file1_esc);
g_free (file2_esc);