[PATCH] Allow proper sharing of files