Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941099 - app-misc/mc-4.8.32: "exiting to latest working directory" has stopped working
Summary: app-misc/mc-4.8.32: "exiting to latest working directory" has stopped working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-07 07:17 UTC by Anton Bolshakov
Modified: 2024-10-09 07:18 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.txt,7.59 KB, text/plain)
2024-10-07 07:17 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2024-10-07 07:17:58 UTC
Created attachment 905032 [details]
emerge --info

do the following (as per post install section)
```
 * To enable exiting to latest working directory,
 * put this into your ~/.bashrc:
 * . /usr/libexec/mc/mc.sh
```

Run MC and go to any directory. Exit from MC, the directly will not be same.

A very quick observation:
/usr/libexec/mc/mc-wrapper.sh the script generates random /tmp/mc-XYZ instead /tmp/mc-USER

I have downgraded back to app-misc/mc-4.8.30-r2, everything is back to normal.
Comment 1 Anton Bolshakov 2024-10-07 07:38:37 UTC
https://midnight-commander.org/ticket/4535 this could be it
Comment 2 Larry the Git Cow gentoo-dev 2024-10-08 05:12:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df5d68b75f3e03ed0463d73665b6cc0bf6614c0a

commit df5d68b75f3e03ed0463d73665b6cc0bf6614c0a
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-10-08 05:11:20 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-10-08 05:12:06 +0000

    app-misc/mc: fix exiting to latest working directory
    
    This was a regression in 4.8.32, fixed after the release.
    
    Closes: https://bugs.gentoo.org/941099
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 app-misc/mc/files/mc-4.8.32-fix-chdir.patch | 129 +++++++++++++++++++++++++
 app-misc/mc/mc-4.8.32-r1.ebuild             | 140 ++++++++++++++++++++++++++++
 2 files changed, 269 insertions(+)