Merge branch '4559_extfs_u7z_mkdir'

* 4559_extfs_u7z_mkdir:
  Ticket #4559: extfs: u7z: bug with nested dirs in mkdir action.
This commit is contained in:
Andrew Borodin 2024-07-28 14:54:17 +03:00
commit 9b2faec578
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ mcu7zip_mkdir ()
{ {
dir=`mktemp -d "${MC_TMPDIR:-/tmp}/mctmpdir-u7z.XXXXXX"` || exit 1 dir=`mktemp -d "${MC_TMPDIR:-/tmp}/mctmpdir-u7z.XXXXXX"` || exit 1
mkdir -p "$dir"/"$2" mkdir -p "$dir"/"$2"
$P7ZIP a -w"$dir" "$1" "$dir"/"$2" >/dev/null 2>&1 $P7ZIP a "$1" "$dir/${2%%/*}" >/dev/null 2>&1
rm -rf "$dir" rm -rf "$dir"
} }