stop all work when /mars/ is exhausted

This commit is contained in:
Thomas Schoebel-Theuer 2012-01-23 16:17:52 +01:00 committed by Thomas Schoebel-Theuer
parent 4016261bae
commit 358d968260
1 changed files with 3 additions and 0 deletions

View File

@ -451,6 +451,9 @@ bool _check_switch(struct mars_global *global, const char *path)
int res = false;
struct mars_dent *allow_dent;
if (global->exhausted)
goto done;
allow_dent = mars_find_dent(global, path);
if (!allow_dent || !allow_dent->new_link)
goto done;