[macruby-changes] [5123] MacRuby/trunk/sandbox.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 5 14:46:48 PST 2011
Revision: 5123
http://trac.macosforge.org/projects/ruby/changeset/5123
Author: lsansonetti at apple.com
Date: 2011-01-05 14:46:43 -0800 (Wed, 05 Jan 2011)
Log Message:
-----------
revert r5122
Revision Links:
--------------
http://trac.macosforge.org/projects/ruby/changeset/5122
Modified Paths:
--------------
MacRuby/trunk/sandbox.c
Modified: MacRuby/trunk/sandbox.c
===================================================================
--- MacRuby/trunk/sandbox.c 2011-01-05 22:26:48 UTC (rev 5122)
+++ MacRuby/trunk/sandbox.c 2011-01-05 22:46:43 UTC (rev 5123)
@@ -86,9 +86,6 @@
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);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110105/c3d1194b/attachment.html>
More information about the macruby-changes
mailing list