Browse Source

dpkg-deb: Do not warn on strange timestamps

The external extractor is only used on dpkg-deb -x (and friends), which
is only used by dpkg when extracting the control member. The internal
dpkg tar extractor never warns on timestamps, and there's no point for
dpkg to induce those warnings on the control extraction either.

Closes: #640298
Guillem Jover 15 years ago
parent
commit
8ed2e04c2b
2 changed files with 3 additions and 1 deletions
  1. 2 0
      debian/changelog
  2. 1 1
      dpkg-deb/extract.c

+ 2 - 0
debian/changelog

@@ -209,6 +209,8 @@ dpkg (1.16.1) UNRELEASED; urgency=low
     Based on a patch by Salvatore Bonaccorso <carnil@debian.org>.
     Based on a patch by Salvatore Bonaccorso <carnil@debian.org>.
   * Fix double “error:” string in dpkg missing PATH error output.
   * Fix double “error:” string in dpkg missing PATH error output.
     Closes: #639997
     Closes: #639997
+  * Do not warn on strange timestamps when unpacking with dpkg-deb.
+    Closes: #639997
 
 
   [ Updated dpkg translations ]
   [ Updated dpkg translations ]
   * German (Sven Joachim). Closes: #620312
   * German (Sven Joachim). Closes: #620312

+ 1 - 1
dpkg-deb/extract.c

@@ -313,7 +313,7 @@ extracthalf(const char *debar, const char *dir, const char *taroption,
         }
         }
       }
       }
 
 
-      execlp(TAR, "tar", buffer, "-", NULL);
+      execlp(TAR, "tar", buffer, "-", "--warning=no-timestamp", NULL);
       ohshite(_("unable to execute %s (%s)"), "tar", TAR);
       ohshite(_("unable to execute %s (%s)"), "tar", TAR);
     }
     }
     close(p2[0]);
     close(p2[0]);