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

Bug#161156: dpkg-statoverride file-mode not completely sanity-checked



Package: dpkg
Version: 1.10.8
Severity: normal
Tags: patch

I used 'dpkg-statoverride --add' with symbolic permissions and it let
me get away with it. When dpkg next ran, it complained about that
entry.

The following patch to dpkg-statoverride makes it check that the
permissions are numeric:

98c98
< 	(($mode<0) or (oct($mode)>07777)) && &badusage("illegal mode $mode");
---
> 	(($mode<0) or (oct($mode)>07777) or ($mode !~ m/\d+/)) && &badusage("illegal mode $mode");


Thanks,

-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux womble 2.4.18 #1 Wed Apr 3 16:51:21 BST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages dpkg depends on:
ii  dselect                       1.10.8     a user tool to manage Debian packa
ii  libc6                         2.2.5-13   GNU C Library: Shared libraries an

-- no debconf information


-- 
Andrew Stribblehill <ads@debian.org>
Systems programmer, IT Service, University of Durham, England



Reply to: