Bug#702610: /usr/bin/debdiff: debdiff: fatal error at line 1021: Cannot write /tmp/<random_chars>/control: Permission denied

Julian Gilbey julian at d-and-j.net
Sat Mar 9 22:57:59 UTC 2013


tags 702610 + patch
thanks

On Sat, Mar 09, 2013 at 01:00:24AM +0200, Bob Bib wrote:
> Package: devscripts
> Version: 2.12.6
> Severity: normal
> File: /usr/bin/debdiff
> 
> Dear Maintainer,
> 
> debdiff fails to process some 3rd-party DEBs:
> 
> $ debdiff AdbeRdr9.5.3-1_i386linux_enu.deb AdbeRdr9.5.4-1_i386linux_enu.deb >
> diff01.diff
> debdiff: fatal error at line 1021:
> Cannot write /tmp/lNEZ0MYwIL/control: Permission denied

Bizarrely, the control files section of these debs looks like this:

-r--r--r-- 1 jdg jdg  439 Jan  2 14:58 control
-r--r--r-- 1 jdg jdg   22 Jan  2 14:58 copyright
-r-xr-xr-x 1 jdg jdg 7722 Jan  2 14:58 postinst*
-r-xr-xr-x 1 jdg jdg 5586 Jan  2 14:58 prerm*

Note that they do not have any write permissions.

The attached patch fixes this bug.

   Julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debdiff.diff
Type: text/x-diff
Size: 280 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20130309/83c06dc8/attachment.diff>


More information about the devscripts-devel mailing list