valid_exec.c

skylib_fluffos_v3/mudlib/secure/master/valid_exec.c · 585 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/*  -*- LPC -*-  */

/*
 * Function name:   valid_exec
 * Description:     Checks if a certain 'program' has the right to use exec()
 * Arguments:       name: Name of the 'program' that attempts to use exec()
 *                        Note that this is different from file_name(),
 *                        Programname is what 'function_exists' returns.
 *                  NOTE, the absence of a leading slash in the name.
 * Returns:         True if exec() is allowed.
 */
int valid_exec(string name) {
  if (name == "secure/login.c")
    return 1;

  return 0;
} /* valid_exec() */

Site Stats

Snippets: 1791
Codebases: 571