unnecessary use of chmod in postinst

Bug #641633 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
turtleart (Ubuntu)
New
Undecided
Unassigned

Bug Description

I just noticed the following in debian/postinst:
DEFAULTS=/etc/gnome/defaults.list
if [ -f $DEFAULTS ]; then
        chmod 666 $DEFAULTS
        echo "application/x-turtle-art=turtleart.desktop" >> $DEFAULTS
        chmod 644 $DEFAULTS
        gtk-update-icon-cache -qf /usr/share/icons/hicolor
fi

There is no reason to use either of the chmod's here. The '666' also gives a slight window where a non-privileged user can add something to the file. Please remove them.

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.