Skip to content

Commit

Permalink
revert r5122
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5123 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Jan 5, 2011
1 parent 6a73f29 commit f5e5f70
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sandbox.c
Expand Up @@ -86,9 +86,6 @@ rb_sandbox_apply(VALUE self, SEL sel)
rb_sandbox_t *box;
Data_Get_Struct(self, rb_sandbox_t, box);
char *error = NULL;
if (box->profile == NULL || box->flags == 0) {
rb_raise(rb_eRuntimeError, "sandbox must have non-empty profile.");
}
if (sandbox_init(box->profile, box->flags, &error) == -1) {
rb_raise(rb_eSecurityError, "Couldn't apply sandbox: `%s`", error);
}
Expand Down

0 comments on commit f5e5f70

Please sign in to comment.