From 544da03b11cc54d70196a7fea2360dbfe0fe3c3b62ae7c0c1ccde7c22a48ca6f Mon Sep 17 00:00:00 2001 From: David Haller Date: Tue, 12 Nov 2013 21:18:22 +0000 Subject: [PATCH] Accepting request 206689 from home:dnh:branches:Base:System fix urar extfs some more (thanks to D. Werner for finding the problem and proposing the fix) OBS-URL: https://build.opensuse.org/request/show/206689 OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=68 --- mc-extfs-helpers-urar.patch | 11 ++++++----- mc.changes | 6 ++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/mc-extfs-helpers-urar.patch b/mc-extfs-helpers-urar.patch index ba7e5e8..ad12a52 100644 --- a/mc-extfs-helpers-urar.patch +++ b/mc-extfs-helpers-urar.patch @@ -1,6 +1,6 @@ --- src/vfs/extfs/helpers/urar.in.orig 2013-11-12 18:27:16.000000000 +0100 +++ src/vfs/extfs/helpers/urar.in 2013-11-12 19:05:31.000000000 +0100 -@@ -42,14 +42,35 @@ +@@ -42,14 +42,36 @@ $UNRAR v -c- -cfg- "$1" | @AWK@ -v uid=`id -u` -v gid=`id -g` ' BEGIN { flag=0 } /^-----------/ { flag++; if (flag > 1) exit 0; next } @@ -15,8 +15,9 @@ +flag == 1 { + name=""; + -+ ### split line and save seperators in 'seps' -+ split($0, fields, " ", seps); ++ ### split line, save n-fields and save seperators in 'seps' ++ nf = split($0, fields, " ", seps); ++ + ### split date for reformatting + split(fields[5], date, "-"); + @@ -29,8 +30,8 @@ + } + } + -+ ### join filename from fields 8 .. NR -+ for(i=8; i<=NR; i++) { ++ ### join filename from fields 8 .. nf (saved above) ++ for(i = 8; i <= nf; i++) { + name=name fields[i] seps[i]; + } + ### remove padding blanks from short names diff --git a/mc.changes b/mc.changes index 66e5127..58adaaf 100644 --- a/mc.changes +++ b/mc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 12 21:09:36 UTC 2013 - dnh@opensuse.org + +- fix urar extfs some more (thanks to D. Werner for finding the problem + and proposing the fix) + ------------------------------------------------------------------- Tue Nov 12 18:11:19 UTC 2013 - dnh@opensuse.org