update-manager notification icon shows broken state

Bug #637157 reported by Daniel J Blueman
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Committed
In Progress

Bug Description

When either running the synaptic package manager, or doing package upgrades in maverick, the update-manager icon would appear in the notification area as a 'no entry' sign from time to time. It's tooltip states:

An error occurred. Please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: ' Unknown Error: '<type 'exceptions.SystemError'>' (E:Opening configuration file /etc/apt/apt.conf.d/99synaptic - ifstream::ifstream (13:Permission denied))'This usually means that your installed packages have unmet dependencies

Inspecting the file /etc/apt/apt.conf.d/99synaptic, it has permissions -rw-------, so clearly when synaptic creates this file, it does not set the umask to a sensible value, and the current one 0077 is passed through.

Revision history for this message
Daniel J Blueman (danielblueman) wrote :

The configuration file is written in common/rconfiguration.cc:RWriteConfigFile , but it's unclear if the umask should be dropped and restored there, or dropped in the initialisation code.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks Daniel, the umask is now just written/restored at the RWriteConfig function (fix commited to bzr). But it looks like you found your way in the code really quickly. It would be great if you could help with other bugs, synaptic is a bit short on man-power currently. Just drop me a mail or contact me on irc if you are interessted :)

Changed in synaptic:
status: New → Fix Committed
Changed in ubuntu:
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers