Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37481210
en ru br
Репозитории ALT
S:3.4-alt9
5.1: 3.4-alt2
4.1: 3.4-alt1
4.0: 3.4-alt1
3.0: 3.2-alt1
www.altlinux.org/Changes

Группа :: Архивирование/Резервное копирование
Пакет: pax

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: pax-3.4-abs100.patch
Скачать


--- pax-3.4/src/tar.c.abs100	2005-08-01 18:17:58.000000000 +0200
+++ pax-3.4/src/tar.c	2007-06-20 10:44:54.000000000 +0200
@@ -1181,6 +1181,14 @@ name_split (name, len)
    * prefix we can find)
    */
   start = name + len - TNMSZ;
+  /* if filename is absolute and exactly TNMSZ in length,
+   * before we invoke the strict interpretation of /str below, we
+   * check to see if there is another slash further along which
+   * would allow a safe split. if this search fails then we hit
+   * the end of the string and fail in a similar manner
+   */
+  if((start == name) && (*start == '/'))
+    ++start;
   while ((*start != '\0') && (*start != '/'))
     ++start;
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin