Branch: Tag:

2008-12-11

2008-12-11 17:14:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed lost support for the host syntax ANY.
Somewhat stricter types.
Added FIXME.

Rev: server/base_server/roxen.pike:1.1003

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1002 2008/12/11 15:58:42 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1003 2008/12/11 17:14:02 grubba Exp $";      //! @appears roxen   //!
2505:   mapping(string:mapping(string:mapping(int:Protocol))) open_ports = ([ ]);      // url:"port" ==> Protocol. - mapping(string:mapping(string:mixed)) urls = ([]); + mapping(string:mapping(string:Configuration|Protocol|string)) urls = ([]);   array sorted_urls = ({});      array(string) find_ips_for( string what )
2552:    url = lower_case( url );    Standards.URI ui = Standards.URI(url);    ui->fragment = 0; -  if (ui->host == "any" || ui->host == "::") +  if (lower_case(ui->host) == "any" || ui->host == "::")    ui->host = "*";       string host = ui->host;
2626:    (string) ui );    return 0;    } -  if (ui->host == "any" || ui->host == "::") +  if (lower_case(ui->host) == "any" || ui->host == "::")    ui->host = "*";       protocol = ui->scheme;
4651: Inside #if undefined(__NT__)
      u=query("User");    sscanf(u, "%s:%s", u, g); + #if 0 +  // FIXME: Support caching the uid/gid in the setting +  // in case of lookup failure further below. +  sscanf(u, "%d", uid); +  sscanf(u, "%s(%d)", u, uid); +  if (g) { +  sscanf(g, "%d", gid); +  sscanf(g, "%s(%d)", g, gid); +  } + #endif /* 0 */    if(strlen(u))    {    if(getuid())