Package: mc
Version: 4.8.18
1. Create a new system user ("gogs" in my case). Default shell in /etc/passwd:
/bin/false, home directory: /opt/gogs.
2. sudo -u gogs bash
3. mc
4. Press Shift+F4 to create a new file with the editor
Mc quits with a Segmentation fault.
Haven't created a new user again, but when I've restarted mc and pressed
Shift+F4 again, the segmentation fault was reproduceable.
If I use F4 first, then the usual prompt appears:
Select an editor. To change later, run 'select-editor'.
1. /bin/nano <---- easiest
2. /usr/bin/mcedit
3. /usr/bin/vim.tiny
After selecting mcedit as an editor Shift+F4 works and can create a new file,
there is no segfault.
So I suspect it was because I haven't selected an editor before pressing
Shift+F4.