Registry broken with umask 0177

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Registry broken with umask 0177

Behdad Esfahbod-3
Hi,

I found this bug because I mistakenly added a "umask(0177)" to
gnome-settings-daemon.  This causes both fontconfig and gstreamer to create
their cache directory with that umask, effectively making it unusable.  This
was causing gstreamer to fail to update cache in its forked child, then trying
again from parent, failing there too and deciding to die, crashing my
gnome-settings-daemon process!  I predicted that out in my previous mail...

Anyway, other than not retrying from the parent, gstreamer should:

  1) chmod() its directory after creating,
  2) If writing to directory fails, try again after a chmod.

That's also what I'm going to make fontconfig do.


Cheers,

behdad

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Registry broken with umask 0177

Tim-Philipp Müller-2
On Tue, 2008-12-09 at 18:35 -0500, Behdad Esfahbod wrote:

Hi Behdad,

> I found this bug because I mistakenly added a "umask(0177)" to
> gnome-settings-daemon.  (...)

Could you file a bug in (gnome) bugzilla about this please, so it
doesn't get lost? Thanks!

Cheers
 -Tim



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Registry broken with umask 0177

Behdad Esfahbod-3
Tim-Philipp Müller wrote:
> On Tue, 2008-12-09 at 18:35 -0500, Behdad Esfahbod wrote:
>
> Hi Behdad,
>
>> I found this bug because I mistakenly added a "umask(0177)" to
>> gnome-settings-daemon.  (...)
>
> Could you file a bug in (gnome) bugzilla about this please, so it
> doesn't get lost? Thanks!

Filed: http://bugzilla.gnome.org/show_bug.cgi?id=564056

Thanks,
behdad

> Cheers
>  -Tim
>
>
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel