Package: dpkg Version: 1.14.25 Followup-For: Bug #182626
As noted, dpkg-deb will currently fail if the control directory is setgid. (The error message is also incorrect.) Abset some reason for this behavior, the following patch fixes it. --- build.c.dist 2009-02-02 06:46:10.000000000 -0800 +++ build.c 2009-03-18 23:36:33.000000000 -0700 @@ -271,9 +271,10 @@ strcat(controlfile, "/" BUILDCONTROLDIR "/"); if (lstat(controlfile,&mscriptstab)) ohshite("unable to stat control directory"); if (!S_ISDIR(mscriptstab.st_mode)) ohshit("control directory is not a directory"); - if ((mscriptstab.st_mode & 07757) != 0755) - ohshit(_("control directory has bad permissions %03lo (must be >=0755 " - "and <=0775)"), (unsigned long)(mscriptstab.st_mode & 07777)); + if ((mscriptstab.st_mode & 05757) != 0755) + ohshit(_("control directory has bad permissions %03lo (must be 0755, " + "0775, 02755, or 02775)"), + (unsigned long)(mscriptstab.st_mode & 07777)); for (mscriptp= maintainerscripts; *mscriptp; mscriptp++) { strcpy(controlfile, directory); -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (950, 'testing'), (650, 'unstable'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.28.4 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dpkg depends on: ii coreutils 6.10-6 The GNU core utilities ii libc6 2.9-4 GNU C Library: Shared libraries ii lzma 4.43-14 Compression method of 7z format in dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 0.7.20.2 Advanced front-end for dpkg -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org