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

Bug#33347: dpkg crashes on non-existant directories



Package: dpkg
Version: 1.4.0.33

Dpkg doesn't seem to check if the directory exists when open():ing them
to find files to purge.

Example:
The package angband had config-files in /etc/angband/edit/

dpkg does open() on /etc/angband/edit/, which failed because that
directory didn't exist for some reason.
Then it got segfault... (probably doesn't check for return-values)

/Tomas
-- 
Tomas Ögren, stric@ing.umu.se, http://www.ing.umu.se/~stric/
|- Student of Computer Science at the University of Umeå
`- Sysadmin at {ing,acc}.umu.se


Reply to: