Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409107 - app-misc/mc-4.8.2 can't run mceedit without file name as parameter
Summary: app-misc/mc-4.8.2 can't run mceedit without file name as parameter
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL: https://www.midnight-commander.org/ti...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 09:05 UTC by Marcin Mirosław
Modified: 2012-03-22 19:59 UTC (History)
2 users (show)

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


Attachments
mc-4.8.2-2754.diff (mc-4.8.2-2754.diff,1.73 KB, patch)
2012-03-22 10:14 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2012-03-21 09:05:05 UTC
In earlier version i could start mceedit without any parameter, write text and choose file name to save content. In 4.8.2 mceedit started without file name displays window with message (pwd is /tmp):
Error
 "/tmp" is not a regular file


Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-03-22 10:14:59 UTC
Created attachment 306287 [details, diff]
mc-4.8.2-2754.diff

Upstream patch directly taken from 
https://www.midnight-commander.org/changeset/529a7ba24c9da9fdb1df939ff0fe35c6d27e65df
Comment 2 Alex Alexander (RETIRED) gentoo-dev 2012-03-22 14:34:52 UTC
fixed in mc-4.8.2-r1.

thanks :)
Comment 3 Marcin Mirosław 2012-03-22 16:30:56 UTC
Thanks for taking it upstream. But... There is another problem with mcedit. Please look at this:
$ mkdir testtest
$ stat testtest
  File: `testtest/'
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fd04h/64772d    Inode: 75          Links: 2
Access: (0700/drwx------)  Uid: ( 1000/  marcin)   Gid: ( 1000/  marcin)
Access: 2012-03-22 17:27:48.815833915 +0100
Modify: 2012-03-22 17:27:48.815833915 +0100
Change: 2012-03-22 17:27:48.815833915 +0100
 Birth: -

$ mceedit
<write something>
<F2-> enter file name->testtest>
"A file already exists with this name" -> choose "Overwrite"
"File has hard-links. Detach before saving?"-> choose "Yes"
"Cannot save file"->Dismiss
<and again without quiting mceedit>
<F2-> enter file name->testtest>
"A file already exists with this name" -> choose "Overwrite"
<hey, where is question about hard links?>
"Cannot save file"->Dismiss
<quit qithout saving>
$ stat testtest/
  File: `testtest/'
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fd04h/64772d    Inode: 75          Links: 2
Access: (0644/drw-r--r--)  Uid: ( 1000/  marcin)   Gid: ( 1000/  marcin)
Access: 2012-03-22 17:27:48.815833915 +0100
Modify: 2012-03-22 17:27:48.815833915 +0100
Change: 2012-03-22 17:28:47.265891420 +0100

Please look at permissions, they are changed.
I hope description how to reproduce error is understable, it's hard to paste ncurses window;)
Comment 4 Marcin Mirosław 2012-03-22 16:38:10 UTC
And most important thing: "testtest" is directory, there shouldn't be any question about removing hardlinks.
Hmm, should it be new bug at b.g.o?
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2012-03-22 19:03:04 UTC
(In reply to comment #4)
> And most important thing: "testtest" is directory, there shouldn't be any
> question about removing hardlinks.
> Hmm, should it be new bug at b.g.o?

Yes please. I'll report it upstream meanwhile.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2012-03-22 19:08:52 UTC
> Yes please. I'll report it upstream meanwhile.

https://www.midnight-commander.org/ticket/2761
Comment 7 Marcin Mirosław 2012-03-22 19:59:19 UTC
Thanks, new bug: bug #409365