[DGD] Compilation in System...

Mikael Lind z94lind at mtek.chalmers.se
Wed Dec 12 14:22:12 CET 2001


Quoting Shevek from 22:52, 2001-12-11:

> Needed this line in the code somewhere personally I put it after the
> set_telnet_manager calls
>
> find_object(RSRCD)->set_access("System", "/", FULL_ACCESS);

set_access() is defined by ACCESSD, not RSRCD; I imagine this was a
typo. Besides, you need to call it using API_ACCESS - calls from
elsewhere will simply be ignored. Read section 6 of
/doc/kernel/overview for an introduction to the APIs.

Proper usage would be:

# include <kernel/access.h>

inherit API_ACCESS;

static void create() {
    ::create();
    set_access("elemel", "/", FULL_ACCESS);
}

// Mikael / Elemel

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list