Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37431364
en ru br
ALT Linux repos
S:3.4-alt9
5.0: 3.4-alt1
4.1: 3.4-alt1
4.0: 3.4-alt1
3.0: 3.2-alt1

Group :: Archiving/Backup
RPM: pax

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: pax-3.4-abs100.patch
Download


--- 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;
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin