minicom/minicom-2.6.1-disable-lock-path-config-with-lockdev.patch

28 lines
994 B
Diff

diff -Naur minicom-2.6.1.orig/src/config.c minicom-2.6.1/src/config.c
--- minicom-2.6.1.orig/src/config.c 2011-12-27 23:23:10.000000000 +0100
+++ minicom-2.6.1/src/config.c 2013-01-23 12:22:04.231148834 +0100
@@ -545,7 +545,11 @@
w = mc_wopen(5, 4, 75, 12, BDOUBLE, stdattr, mfcolor, mbcolor, 0, 0, 1);
mc_wprintf(w, "%s %.41s\n", serial_device, P_PORT);
+#if !HAVE_LOCKDEV
mc_wprintf(w, "%s %.41s\n", lockfile_location, P_LOCK);
+#else
+ mc_wprintf(w, "\n");
+#endif
mc_wprintf(w, "%s %.41s\n", callin_program, P_CALLIN);
mc_wprintf(w, "%s %.41s\n", callout_program, P_CALLOUT);
mc_wprintf(w, "%s %s %s%s%s\n",
@@ -565,9 +569,11 @@
case 'A':
pgets(w, mbslen (serial_device) + 1, 0, P_PORT, 64, 64, 1);
break;
+#if !HAVE_LOCKDEV
case 'B':
pgets(w, mbslen (lockfile_location) + 1, 1, P_LOCK, 64, 64, 1);
break;
+#endif
case 'C':
pgets(w, mbslen (callin_program) + 1, 2, P_CALLIN, 64, 64, 1);
break;