Last-Update: 2012-02-25
Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org>
Forwarded: yes
Bug-Debian: http://bugs.debian.org/592208
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.
a
|
b
|
|
628 | 628 | base = x_basename (argv[0]); |
629 | 629 | tmp = (argc > 0) ? argv[1] : NULL; |
630 | 630 | |
631 | | if (strncmp (base, "mce", 3) == 0 || strcmp (base, "vi") == 0) |
| 631 | if (strncmp (base, "mce", 3) == 0 || strcmp (base, "vi") == 0 || strcmp (base, "editor") == 0) |
632 | 632 | { |
633 | 633 | /* mce* or vi is link to mc */ |
634 | 634 | |