LPMuds.net

LPMuds.net Forums => General => Topic started by: melkor on July 28, 2014, 03:21:50 am

Title: PRIVS issues
Post by: melkor on July 28, 2014, 03:21:50 am
Hi guys!

I am having some issues with PRIVS in my project and i am currently out of ideas what it could be.
For some reason the files sefun.c and valid.c are not correctly reported by the PRIVS system and i cannot find why.
This is an example of the output during my tests:
Code: [Select]
> eval write(find_object("/adm/master/sefun.c"))
OBJ(/adm/master/sefun)Result = 0
> eval write(query_privs(find_object("/adm/master/sefun.c")))
0Result = 0
> eval write(query_privs(find_object("/adm/master/valid.c")))
0Result = 0
> eval write(query_privs(find_object("/adm/master/master.c")))
[master]Result = 0
> eval write(find_object("/adm/master/master.c"))
OBJ(/adm/master/master)Result = 0
> eval write(find_object("/adm/master/login.c"))
OBJ(/adm/master/login)Result = 0
> eval write(query_privs(find_object("/adm/master/login.c")))
[master]Result = 0
As you can see the master and the login objects are reported correctly, but the sefun.c and valid.c are not.
This is breaking the usefulness of the PRIVS system for me and i am really lost.
Why two of the objects are reported correctly and two of them are not?

I would really appreciate some help as i am currently at dead end.

Thank you!

P.S. - And a dump of all loaded objects during the test:
Code: [Select]
> eval write(dump_variable(objects()))
ARRAY:
[0] == (/tmp/eval_file)
[1] == (/cmds/eval)
[2] == (/std/void)
[3] == (/std/user#2)
[4] == (/std/user)
[5] == (/std/user/save)
[6] == (/std/living)
[7] == (/std/living/hpsp)
[8] == (/std/living/stats)
[9] == (/std/living/env)
[10] == (/std/object/ob)
[11] == (/std/object/ob_logic)
[12] == (/adm/master/login#1)
[13] == (/adm/master/login)
[14] == (/adm/master/master)
[15] == (/adm/master/valid)
[16] == (/adm/master/sefun)Result = 0