ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Stas <stas.grumbler@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] mc uzip failed
Date: Thu, 1 Dec 2016 14:43:02 +0500
Message-ID: <583FF0A6.4010802@gmail.com> (raw)
In-Reply-To: <CABUeJrQ7gObCZE7ECP7jtEusbb9uH7YbYExt0DKObH1X51zi8Q@mail.gmail.com>

Приветствую!

On 01.12.2016 13:15, Aleksey Birukov wrote:
> 106:    if ($cmd eq 'list')    { &mczipfs_list(@ARGV); }
>   DB<3> s
> main::mczipfs_list(/usr/lib/mc/extfs.d/uzip:249):
> 249:            open (PIPE, "$cmd_list $qarchive |") ||
> &croak("$app_unzip failed");
>   DB<3> print $app_unzip
> /usr/bin/unzip

Тут нужно было
print $cmd_list $qarchive

В трассировке видно, что open отрабатывает, а ошибка возникает при
закрытии пайпа, причём чтение из него фактически не выполняется:
> DB<4> s
> main::mczipfs_list(/usr/lib/mc/extfs.d/uzip:250):
> 250:            if ($op_has_zipinfo) {
>   DB<4> s
> main::mczipfs_list(/usr/lib/mc/extfs.d/uzip:251):
> 251:                    while (<PIPE>) {
>   DB<4> s
> main::mczipfs_list(/usr/lib/mc/extfs.d/uzip:277):
> 277:            if (!close (PIPE)) {
>   DB<4> s
> main::mczipfs_list(/usr/lib/mc/extfs.d/uzip:278):
> 278:                    &croak("$app_unzip failed") if ($! != 0);

Суть этого - команда, вывод которой должен быть прочитан, не
выполнилась, хотя шел запустился.

попробуйте в отладке после 106 строки выполнить system("/bin/bash") и,
если получится, посмотрите текущий каталог, эффективного пользователя и
ulimit -a

-- 
Станислав Дёгтев


      parent reply	other threads:[~2016-12-01  9:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-25 15:40 ` Stas
2016-11-25 23:09     ` Stas
2016-11-27 11:05         ` Sergey
2016-11-27 20:08             ` Stas
2016-11-28  5:26             ` Sergey
2016-11-29 19:46                 ` Sergey
2016-11-30  5:33                 ` Stas
2016-11-30 11:58 ` Sergey
2016-12-01  9:43     ` Stas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=583FF0A6.4010802@gmail.com \
    --to=stas.grumbler@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git