Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334383 - app-misc/mc: cons-saver needs to be sgid tty for C-o to save and restore the screen on a shell flip
Summary: app-misc/mc: cons-saver needs to be sgid tty for C-o to save and restore the...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Alex Alexander (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 06:50 UTC by Raymond Jennings
Modified: 2010-08-25 22:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Jennings 2010-08-25 06:50:44 UTC
Default perms for /dev/tty? are gid tty, and midnight commander can't save and restore the screen properly without cons-saver being sgid tty.

I reported the same bug on ubuntu here:
https://bugs.launchpad.net/ubuntu/+source/mc/+bug/367318

Reproducible: Always

Steps to Reproduce:
1.  Run mc on a bare VT
2.  Hit C-o to flop to the shell
3.  Hit it again to return to mc
4.  Hit it a third time to return to the shell

Actual Results:  
Screen is blanked out when I go back to the shell.

Expected Results:  
Screen is restored when I go back to the shell

To fix, make cons-saver sgid tty
Comment 1 Alex Alexander (RETIRED) gentoo-dev 2010-08-25 22:04:08 UTC
fixed it in mc-4.7.0.8-r1 and mc-4.7.3-r3.

thanks!
Comment 2 Raymond Jennings 2010-08-25 22:14:07 UTC
And thank you all for your promptness.

The guys over at ubuntu had their thumbs twiddling for 2 releases before their debian upstream got wind of it and fired out a patch. :P