Bug 16311 - Possible name and version overlap while trying to install "file" with version specification
Summary: Possible name and version overlap while trying to install "file" with version...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: apt (show other bugs)
Version: unstable
Hardware: all Linux
: P2 major
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 13:53 MSD by Sir Raorn
Modified: 2008-09-02 08:58 MSD (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sir Raorn 2008-07-08 13:53:31 MSD
Сразу пример:

# apt-get install /bin/rm=6.11
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting coreutils for '/bin/rm=6.11'
E: Version ='s' for 'coreutils' was not found

Проблема в apt-get.cc::DoInstall() при обработке /some/file.  char *VerTag смотрит на временный буфер с копией command line аргумента, при обработке /some/file в этот же временный буфер копируется имя пакета, который предоставляет /some/file.  Если имя пакета оказывается длиннее /some/file, VerTag начинает смотреть на мусор.
Comment 1 avm 2008-09-02 08:58:58 MSD
Исправлено в Сизифе.