[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#945869: lintian: false positive for debian-rules-not-executable



Checking that the file mode is exactly 0755 when all that is actually desired 
is that the file be executable seems wrong.

checks/debian/rules.pm:

   # Check if debian/rules is marked as executable. 
   $self->tag('debian-rules-not-executable') 
     unless $rules->operm == 0755 or $rules->is_symlink; 

perhaps a better test would be (my perl is rather rusty):

 $rules->operm & 0111

cheers
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart@nanonanonano.net
Debian Developer   http://www.debian.org/         stuart@debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7


Reply to: