walterbender / training

training activity for Sugar
GNU General Public License v3.0
4 stars 7 forks source link

Check permissions unix-way #1

Closed tchx84 closed 10 years ago

tchx84 commented 10 years ago

Check if path write flags are enabled for the current user, group or everyone else.

The permission logic was failing during the "first time" scenario, where the activity was opened for the first time, because there was no data file to read from in the first place.

This patch solves the logic and also does proper permission checking.

Signed-off-by: Martin Abente Lahaye tch@sugarlabs.org