Exemple #1
0
int			get_pass(void)
{
  struct termios	oldline;
  char			buf[BUF_SIZE + 1];
  int			len;
  char			*p;
  char			*c;

  fputs("Password: "******"");
  buf[len - 1] = '\0';
  c = "$6$";
  if (ld_check())
    return (-2);
  else if ((p = crypt(buf, c)) == NULL)
    return (-1);
  else if (crypt_cmp(p))
    return (1);
  else if (be_root(SHELL))
    return (-1);
  return (0);
}
Exemple #2
0
AST_Root *
be_generator::create_root (UTL_ScopedName *n)
{
  be_root *retval = 0;
  ACE_NEW_RETURN (retval,
                  be_root (n),
                  0);

  return retval;
}