MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: @create




	What I did to fix that is:
#1) Removed the wizard check from $quota_utils:bi_create,
#2) Protected the create() builtin via $server_options.protect_create
#3) Set up $bf_create() along these lines:

	if (!length(children($garbage)))
	set_task_perms(#2);
	foo = create();
	chparent(foo, args[<whatever it is>]);
	$wiz_utils:chown(foo, args[<whatever it is>]);
	set_task_perms(caller_perms);
	return foo;
	else
	set_task_perms(#2);
	foo = children($garbage)[random(length(children($garbage)))];
	chparent(foo, args[<whatever it is>]);
	$wiz_utils:chown(foo, args[<whatever it is>]);
	set_task_perms(caller_perms);
	return foo;
	endif

/---- Chris Jones ----v- PGP Fingerprint --------------------------------\
|42 -It's the answer! | 95 2F 8F 26 F9 CA 4B 1A D1 CA C1 5E F9 76 59 AB |
\---------------------^--------------------------------------------------/

On Sun, 12 May 1996, Mike Carns wrote:

> The $byte_quota_utils fix didn't help.  Here's the taceback:
> #42:controls, line 3:  Invalid indirection
> ... called from #90:moveto acceptable (this == #2), line 11
> ... called from #1:accept (this == #2), line 2
> ... called from built-in function move()
> ... called from #4:@create (this == #2), line 41
> (End of traceback)
> 
> I'd look at it on Lambda, but as I said, I don't have an account (i'm 4--
> something on the wait list).
> 
> Mcarns
> 
> 
> ΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡ-------------------------------------------------------
> | Windows 95 = Macintosh 89    |  Michael Carns                          |
> | DOS is a four letter word    |  mcarns@crl.com                         |
> | MSDOS just say NO!           |  http://192.188.37.4/~mcarns/           |
> --------------------------------------------------------------------------
> 
> 


References:

Home | Subject Index | Thread Index