dpkg-statoverride should not consider unknown group a "syntax error"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Debian) |
Fix Released
|
Unknown
|
|||
dpkg (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: dpkg
Removal of package gnokii-cli 0.6.28.dfsg-1 left /var/lib/
$ grep gnokii /var/lib/
root gnokii 4750 /usr/sbin/
$ ls -l /usr/sbin/
ls: cannot access /usr/sbin/
$ grep gnokii /etc/group
$ dpkg-statoverride --remove /usr/sbin/
dpkg-
syntax error: unknown group 'gnokii' in statoverride file
$ dpkg-statoverride --list
dpkg-
syntax error: unknown group 'gnokii' in statoverride file
The "corrupted state" here is that the statoverride file mentions a group which no longer exists. (The same issue occurs with a nonexistent user, as see in LP#161798
Problems with this:
1. Parsing of /var/lib/
2. This is not a "syntax error" but an "unexpected value".
3. The error should not be fatal for --list.
4. The error should definitely not be fatal for an attempt to --remove the very entry which is being complained about!
5. Trivial: the message should not be prefixed with "dpkg-statoverr
To reproduce without the help of a defective package:
# sudo sh -c 'echo "foo bar 1234 /etc/baz" >> /var/lib/
# dpkg-statoverride --list
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: dpkg 1.15.5.6ubuntu4
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sun Jun 13 22:30:20 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20091209)
ProcEnviron:
PATH=(custom, user)
LANG=C
SHELL=/bin/bash
SourcePackage: dpkg
tags: | added: patch |
Changed in dpkg (Debian): | |
status: | Unknown → New |
Changed in dpkg (Debian): | |
status: | New → Fix Released |
Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at: http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 592764