pike.git / src / pike_security.h

version» Context lines:

pike.git/src/pike_security.h:82:      #define VALID_FILE_IO(name, access_type) \    if(!CHECK_SECURITY(SECURITY_BIT_SECURITY)) \    { \    int e; \    struct svalue *base_sp=Pike_sp-args; \    \    if(!CHECK_SECURITY(SECURITY_BIT_CONDITIONAL_IO)) \    Pike_error(name ": Permission denied.\n"); \    \ -  push_constant_text(name); \ -  push_constant_text(access_type); \ +  push_text(name); \ +  push_text(access_type); \    \    for(e=0;e<args;e++) push_svalue(base_sp+e); \    \    safe_apply(OBJ2CREDS(CURRENT_CREDS)->user,"valid_io",args+2); \    \    switch(TYPEOF(Pike_sp[-1])) \    { \    case PIKE_T_ARRAY: \    case PIKE_T_OBJECT: \    case PIKE_T_MAPPING: \