ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Fwd: [git update] packages/test-glob-req: heads/master
Date: Sun, 9 Sep 2007 22:54:03 +0400
Message-ID: <20070909185403.GS6051@solemn.turbinal> (raw)
In-Reply-To: <75e139a00709091140h509748c2n572fcf6d0df1b429@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

On Mon, Sep 10, 2007 at 01:40:41AM +0700, Slava Semushin wrote:
> xosd-utils, xpdf-reader, xpdf-utils, xpenguins, xplanet, xprop,
> xrandr, xrdb, xrefresh, xset, xsetmode, xsetroot, xsnow, xstdcmap,
> xterm, xtrap, xvidtune, xvinfo, zip, zsh
> 
> Как это истолковывать и что это значит? (В час тридцать восемь ночи
> что-то не соображу..)
> 
> Спасибо.

В пакете имеется всего один скрипт вида
#!/bin/sh
/usr/bin/*

Шелл-анализатор считает "/usr/bin/*" командой (не отсеивает глоб):

$ sh --rpm-requires -c '/usr/bin/*'
executable(/usr/bin/*)
$

В таком виде это поступает на вход в shell.req.  Из-за того, что старый
(текущий) shell.req не работает в режиме -f, то там при определенной
попытке разбить все полученные из --rpm-requires зависимости на слова
выполняется реальный шелл-глоб:

# Find requires
found="$(FindReqs $reqs)"

Здесь $reqs не только разбивается на слова, но и выполняется глоб,
то есть /usr/bin/* среди $reqs фактически раскрывается во все-все
файлы в /usr/bin.  После этого запускается поиск зависимостей на все-все
файлы в /usr/bin.

Новый (мой not yet) shell.req работает в режиме -f, поэтому появляется
неудовлетворенная зависимость на /usr/bin/* (sic!).

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-09-09 18:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-08 15:49 Alexey Tourbin
2007-09-08 18:50 ` Michael Shigorin
2007-09-08 19:52   ` Alexey Tourbin
2007-09-08 20:00     ` [devel] [JT] zsh nonomatch by default pls :) Michael Shigorin
2007-09-08 20:10       ` Alexey Tourbin
2007-09-09 17:21         ` Michael Shigorin
2007-09-09 18:40 ` [devel] Fwd: [git update] packages/test-glob-req: heads/master Slava Semushin
2007-09-09 18:54   ` Alexey Tourbin [this message]
2007-09-10  9:34     ` [devel] find-package: implemented protection against shell metacharacters and evil paths Alexey Tourbin

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=20070909185403.GS6051@solemn.turbinal \
    --to=at@altlinux.ru \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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