summaryrefslogtreecommitdiffstats
path: root/debian/patches/alt_editor.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:13 +0000
commitb53c174e5d2eba47d82b05cb5787b183a0aadf84 (patch)
treed11ab04473fd36be6989c8a494a245fce8a80cbb /debian/patches/alt_editor.patch
parentAdding upstream version 3:4.8.29. (diff)
downloadmc-b53c174e5d2eba47d82b05cb5787b183a0aadf84.tar.xz
mc-b53c174e5d2eba47d82b05cb5787b183a0aadf84.zip
Adding debian version 3:4.8.29-2.debian/3%4.8.29-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/alt_editor.patch')
-rw-r--r--debian/patches/alt_editor.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/alt_editor.patch b/debian/patches/alt_editor.patch
new file mode 100644
index 0000000..958a51e
--- /dev/null
+++ b/debian/patches/alt_editor.patch
@@ -0,0 +1,27 @@
+Last-Update: 2012-08-04
+Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org>
+Forwarded: yes
+Bug-Debian: http://bugs.debian.org/592208
+Bug-MC: https://www.midnight-commander.org/ticket/2799
+Bug-MC: https://www.midnight-commander.org/ticket/2638
+Author: Yury V. Zaytsev <yury@shurup.com>
+Description: Detect that mc was launched from alternatives symlink
+ This patch in needed to mcedit to start if run as 'editor' symlink
+ from alternatives.
+ .
+ As of 2012-05-01 upstream believe this should be customised per
+ distribution as therefore refused to commit.
+
+--- a/src/args.c
++++ b/src/args.c
+@@ -619,9 +619,9 @@
+ const char *base;
+
+ base = x_basename (argv[0]);
+
+- if (strncmp (base, "mce", 3) == 0 || strcmp (base, "vi") == 0)
++ if (strncmp (base, "mce", 3) == 0 || strcmp (base, "vi") == 0 || strcmp (base, "editor") == 0)
+ {
+ /* mce* or vi is link to mc */
+ mc_global.mc_run_mode = MC_RUN_EDITOR;
+ }