[Sugar-devel] [PATCH] Cleanup temporary files on startup (v2)

James Cameron quozl at laptop.org
Thu May 13 18:54:09 EDT 2010


On Thu, May 13, 2010 at 08:54:42PM +0200, Sascha Silbe wrote:
> On Thu, May 13, 2010 at 02:42:32PM -0400, Bernie Innocenti wrote:
> 
> >+# Remove temporary files. See http://bugs.sugarlabs.org/ticket/1876
> >+rm -rf $HOME/.sugar/${SUGAR_PROFILE:-default}/data/*
> Why -rf? There should only be hard links, i.e. files in there (=> no
> -r required). Also they are created by the data store, so they
> should have the user running the rm as owner (even with Rainbow) and
> be writable, so no -f required.

I have no problem with the -rf, since the conditions you describe may
later change.

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list