Parcourir la source

dpkg-deb: Fix corrupt archive header magic error string

The string was referring to the first header when the string refers to
any header parsed.
Guillem Jover il y a 15 ans
Parent
commit
460284e19e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      dpkg-deb/extract.c

+ 1 - 1
dpkg-deb/extract.c

@@ -143,7 +143,7 @@ extracthalf(const char *debar, const char *dir, const char *taroption,
       dpkg_ar_normalize_name(&arh);
       dpkg_ar_normalize_name(&arh);
 
 
       if (memcmp(arh.ar_fmag,ARFMAG,sizeof(arh.ar_fmag)))
       if (memcmp(arh.ar_fmag,ARFMAG,sizeof(arh.ar_fmag)))
-        ohshit(_("file `%.250s' is corrupt - bad magic at end of first header"),debar);
+        ohshit(_("file '%.250s' is corrupt - bad archive header magic"), debar);
       memberlen = dpkg_ar_member_get_size(debar, &arh);
       memberlen = dpkg_ar_member_get_size(debar, &arh);
       if (!header_done) {
       if (!header_done) {
         char *infobuf;
         char *infobuf;