Lines Matching defs:cmd
67 MODRET set_solaris_priv(cmd_rec *cmd) {
72 if (cmd->argc - 1 < 1)
73 CONF_ERROR(cmd, "need at least one parameter");
75 CHECK_CONF(cmd, CONF_ROOT|CONF_VIRTUAL|CONF_GLOBAL);
80 for (i = 1; i < cmd->argc; i++) {
81 char *cp = cmd->argv[i];
84 if (*cmd->argv[i] != '+' && *cmd->argv[i] != '-')
85 CONF_ERROR(cmd, pstrcat(cmd->tmp_pool, ": bad option: '",
86 cmd->argv[i], "'", NULL));
89 if (*cmd->argv[i] == '-')
93 if (*cmd->argv[i] == '-')
97 if (*cmd->argv[i] == '+')
101 if (*cmd->argv[i] == '+')
105 if (*cmd->argv[i] == '+')
109 if (*cmd->argv[i] == '+')
113 CONF_ERROR(cmd, pstrcat(cmd->tmp_pool, "unknown privilege: '",
118 c = add_config_param(cmd->argv[0], 1, NULL);
122 return PR_HANDLED(cmd);
126 MODRET set_solaris_priv_engine(cmd_rec *cmd) {
130 CHECK_ARGS(cmd, 1);
131 CHECK_CONF(cmd, CONF_ROOT|CONF_VIRTUAL|CONF_GLOBAL);
133 bool = get_boolean(cmd, 1);
135 CONF_ERROR(cmd, "expecting Boolean parameter");
137 c = add_config_param(cmd->argv[0], 1, NULL);
141 return PR_HANDLED(cmd);
151 MODRET solaris_priv_post_pass(cmd_rec *cmd) {
158 return PR_DECLINED(cmd);
253 return PR_DECLINED(cmd);