소스 검색

dpkg-deb: Remove arbitrary filename limit

The limit was lifted when the code switched from a constant sized string
to a dynamic one via varbuf.
Guillem Jover 11 년 전
부모
커밋
8a54695dd4
3개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 0
      debian/changelog
  2. 0 2
      dpkg-deb/build.c
  3. 0 2
      dpkg-deb/dpkg-deb.h

+ 2 - 0
debian/changelog

@@ -89,6 +89,8 @@ dpkg (1.17.14) UNRELEASED; urgency=low
   * Never try to remove the root directory or its backups. There's no point in
     it, and makes life more difficult for a read-only root with a read-write
     overlay or a symlink farm. Requested by sepero111@gmx.com.
+  * Remove arbitrary filename limit from dpkg-deb, which was lifted some
+    time ago when the code switched to a dynamic string via varbuf.
 
   [ Raphaël Hertzog ]
   * Explain better in deb-triggers(5) why interest/activate-noawait should be

+ 0 - 2
dpkg-deb/build.c

@@ -121,8 +121,6 @@ file_info_get(const char *root, int fd)
       break;
 
     varbuf_trunc(&fn, fn.used + 1);
-    if (fn.used >= MAXFILENAME)
-      ohshit(_("file name '%.50s...' is too long"), fn.buf + root_len);
   }
 
   fi = file_info_new(fn.buf + root_len);

+ 0 - 2
dpkg-deb/dpkg-deb.h

@@ -75,8 +75,6 @@ extern struct compress_params compress_params;
 #define ADMINMEMBER		"control.tar"
 #define DATAMEMBER		"data.tar"
 
-#define MAXFILENAME 2048
-
 #ifdef PATH_MAX
 # define INTERPRETER_MAX PATH_MAX
 #else