[Sugar-devel] [PATCH sugar-0.84] journal scan of external media

Sascha Silbe sascha-ml-reply-to-2010-3 at silbe.org
Fri Sep 10 12:27:50 EDT 2010

Excerpts from James Cameron's message of Thu Sep 09 06:39:53 +0200 2010:

> +            if link == '.':
> +                return True

> +            if link.startswith('/') and full_path.startswith(link):
> +                return True

Both shouldn't be necessary (will be catched by the loop detection).

As mentioned in the other mail, we should also make sure we stay on the
current device:

        if not os.path.abspath(full_path).startswith(self._mount_point):
            return True


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100910/7493d503/attachment.pgp 

More information about the Sugar-devel mailing list