Fix for password-protected .rar files
Denis Vlasenko
vda.linux at googlemail.com
Mon Jul 24 15:35:33 UTC 2006
On Monday 24 July 2006 16:31, Pavel Tsekov wrote:
> On Mon, 24 Jul 2006, Denis Vlasenko wrote:
>
> > https://savannah.gnu.org/bugs/?func=detailitem&item_id=16967
>
> Is this option supported on earlier versions of rar which might be
> still used ?
Don't know. :)
> > unrar of password-protected archives hangs (unrar opens
> > /dev/tty and sits there, waiting for the password)
> > The patch adds -p- switch.
> > A few unsafe "$var" expansions are fixed in several etxfs scripts.
>
> The patch includes random quoting of shell variables as well
> as formatting fixes - please submit a proper patch which does
> only what it advertises.
Ok, the attached patch quotes some environment variables.
vfs/extfs/* scripts seem to presume that there are no spaces
in filenames. Yes, we typically do not expect $TMPDIR to contain spaces,
but if it will contain them on some strange system, then what?
Is cd $TMPDIR ok? No! cd "$TMPDIR"!
The attached patch fixes these.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extfs.diff
Type: text/x-diff
Size: 4628 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20060724/7946d459/attachment.diff>
More information about the mc-devel
mailing list