[Midnight Commander] #4411: 7z password protected archives

4 views
Skip to first unread message

Ticket System

unread,
Nov 21, 2022, 11:46:12 AM11/21/22
to dev....@gmail.com, mc-...@googlegroups.com
#4411: 7z password protected archives
--------------------------------+-----------------------------------
Reporter: maxz | Type: enhancement
Status: new | Priority: major
Milestone: Future Releases | Component: mc-vfs
Version: master | Keywords: 7z
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------------+-----------------------------------
When you try to view encrypted file in 7z archive, MC hangs up.
Only kill MC process helps.
The solution is simple:


{{{
diff --git a/src/vfs/extfs/helpers/u7z b/src/vfs/extfs/helpers/u7z
index 91301c3d9..603c976d3 100755
--- a/src/vfs/extfs/helpers/u7z
+++ b/src/vfs/extfs/helpers/u7z
@@ -74,7 +74,7 @@ mcu7zip_copyout ()
#first we check if we have old p7zip archive with prefix ./ in
filename
$P7ZIP l "$1" "$2" | grep -q "0 files, 0 folders" && \
EXFNAME='*./'"$2" || EXFNAME="$2"
- $P7ZIP e -so "$1" "$EXFNAME" > "$3" 2>/dev/null
+ $P7ZIP e -so -p- "$1" "$EXFNAME" > "$3" 2>/dev/null
}

mcu7zip_copyin ()


}}}
The same problem with rar and zip encrypted archives but patch exists on
the net, but still is not included in MC sources.

--
Ticket URL: <http://www.midnight-commander.org/ticket/4411>
Midnight Commander <https://midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Nov 21, 2022, 12:17:35 PM11/21/22
to dev....@gmail.com, mc-...@googlegroups.com
#4411: 7z password protected archives
----------------------------+------------------------------
Reporter: maxz | Owner:
Type: enhancement | Status: closed
Priority: major | Milestone:
Component: mc-vfs | Version: master
Resolution: duplicate | Keywords: 7z

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
----------------------------+------------------------------
Changes (by andrew_b):

* status: new => closed
* resolution: => duplicate
* milestone: Future Releases =>


Comment:

Closed as duplicate of #1685.

--
Ticket URL: <http://www.midnight-commander.org/ticket/4411#comment:1>

Ticket System

unread,
Jul 22, 2024, 9:53:55 AM (5 days ago) Jul 22
to dev....@gmail.com, mc-...@googlegroups.com
#4411: 7z password protected archives
----------------------------+------------------------------
Reporter: maxz | Owner:
Type: enhancement | Status: closed
Priority: major | Milestone:
Component: mc-vfs | Version: master
Resolution: duplicate | Keywords: 7z

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
----------------------------+------------------------------

Comment (by ponko):

Blindly using "-p" is not a good idea. True 7zr binary (not a symlink 7zr
-> 7zz like in 7zip package from opensuse 15.6) does not support "-p". So,
on a minimal system with only true 7zr available, "$P7ZIP e -so -p- .."
always fails

--
Ticket URL: <http://www.midnight-commander.org/ticket/4411#comment:2>

Reply all
Reply to author
Forward
0 new messages