Ticket #2063 (new defect)
mc 4.7 doesn't handle hardlinks properly when browsing .deb or .rpm
Reported by: | marcmerlin | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-vfs | Version: | 4.7.0.10 |
Keywords: | Cc: | zaytsev | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
virtual directories while browsing an rpm or a deb have permissions that are based on my umask and not the permissions inside the rpm or deb.
I spent a long time trying to debug why the rpms I was creating had directories that were 750 until I finally realized that the rpms were good but that when I was browsing them with mc, mc showed me incorrect permissions.
(example, set umask to 0077 and all directories will show as 700 when they could be 755 in the package)
Same thing seems to happen with debs in 4.6.1
In 4.6.2 debs seem to have correct permissions, but rpms are still broken.
Attachments
Change History
comment:2 Changed 15 years ago by marcmerlin
thanks for the reply.
So, I'm already running ubuntu karmic which is the latest released. I'll look at building from source, but are you able to just do the test quickly to see if the problem is still in 4.7?
I also just verified that hardlinks also do not get represented properly (i.e. hard link info gets lost)
comment:3 Changed 15 years ago by marcmerlin
sorry, what I meant is that hard links strangely get changed into fully qualified (and therefore broken) symlinks. Most weird...
comment:4 follow-up: ↓ 5 Changed 15 years ago by marcmerlin
- Version changed from 4.6.1 to 4.7.0
- Summary changed from mc 4.6.1 has incorrect permission for directories when browsing .deb or .rpm to mc 4.7 doesn't handle hardlinks properly when browsing .deb or .rpm
Ok, I was able to upgrade to mc 4.7.0.
Looks like umask doesn't affect directories anymore, but hardlinks are still broken.
I opened the bzip2 deb, went to CONTENTS/bin and saw
!bunzip2 -> /./bin/bzip2
!bzcat -> /./bin/bzip2
those are actually hardlinks in the package.
I think that's the only problem left in the current mc package.
comment:5 in reply to: ↑ 4 Changed 15 years ago by angel_il
Replying to marcmerlin:
Ok, I was able to upgrade to mc 4.7.0.
Looks like umask doesn't affect directories anymore, but hardlinks are still broken.
can you attach test.deb ?
Changed 15 years ago by marcmerlin
- Attachment bzip2_1.0.5-4_i386.deb added
stock bzip2 deb from ubuntu lucid
comment:7 Changed 13 years ago by zaytsev
hrwxr-xr-x root/root 0 2010-02-08 13:54 ./bin/bunzip2 ссылка на ./bin/bzip2 hrwxr-xr-x root/root 0 2010-02-08 13:54 ./bin/bzcat ссылка на ./bin/bzip2
1) Hard links are shown as symbolic links
2) Hard link counter is zero
I think this should be reported as a bug against dpkg-deb ( dpkg-deb -c output).
Please try the latest version of MC.
Sorry, but 4.6.x series are not supported.