Bug 16311 - Possible name and version overlap while trying to install "file" with version specification
: Possible name and version overlap while trying to install "file" with version...
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/apt)
: unstable
: all Linux
: P2 major
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2008-07-08 13:53 by
Modified: 2008-09-02 08:58 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-07-08 13:53:31
Сразу пример:

# 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 From 2008-09-02 08:58:58 -------
Исправлено в Сизифе.