* man/C/dselect.1: Update reference to debconf
man page with correct section (8->1)
+ * scripts/dpkg-source.pl: Warn on -b if we add a file with
+ special (i.e. exectuable or set{u,g}id) permission in the
+ diff since this mode will get lost.
+
2005-10-07 Frank Lichtenheld <djpig@debian.org>
* scripts/controllib.pl:
* Fix man page references to dpkg and dselect man pages. Many
of them still had a wrong section.
Closes: #332826
+ * Let dpkg-source -b warn about special permissions of files added
+ in the diff since these will get lost. Closes: #306125
--
use POSIX;
use POSIX qw (:errno_h :signal_h);
+use Fcntl qw (:mode);
use strict 'refs';
next file if $fn =~ m/$diff_ignore_regexp/o;
$fn =~ s,^\./,,;
lstat("$dir/$fn") || &syserr("cannot stat file $dir/$fn");
+ my $mode = S_IMODE((lstat(_))[2]);
if (-l _) {
$type{$fn}= 'symlink';
&checktype('-l') || next;
if (!lstat("$origdir/$fn")) {
$! == ENOENT || &syserr("cannot stat orig file $origdir/$fn");
$ofnread= '/dev/null';
+ if( $mode & ( S_IXUSR | SIXGRP | S_IXOTH ) ) {
+ &warn( sprintf( "executable mode %04o of `$fn' will not be represented in diff", $mode ) )
+ unless $fn eq 'debian/rules';
+ }
+ if( $mode & ( S_ISUID | S_IGID | S_ISVTX ) ) {
+ &warn( sprintf( "special mode %04o of `$fn' will not be represented in diff", $mode ) );
+ }
} elsif (-f _) {
$ofnread= "$origdir/$fn";
} else {