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

Sascha Silbe sascha-ml-ui-sugar-devel at silbe.org
Thu May 13 14:54:42 EDT 2010


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.

CU Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100513/cc29f3f3/attachment-0001.pgp 


More information about the Sugar-devel mailing list