pike.git / lib / modules / Tools.pmod / Standalone.pmod / rsqld.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/rsqld.pike:120:    {    expect(12, got_cmdhead);    }       protected int cmd_login(array(string) userpw)    {    int authorized = 0;       if(!users)    authorized = 1; // No security enabled -  else if(sizeof(userpw) && userpw[0] && !zero_type(users[userpw[0]])) { +  else if(sizeof(userpw) && userpw[0] && has_index(users, userpw[0])) {    if(!stringp(users[userpw[0]]))    authorized = 1; // Password-less user    else if(sizeof(userpw)>1 && userpw[1] &&    crypt(userpw[1], users[userpw[0]]))    authorized = 1; // Correct password for user    }       if(authorized)    commandset_1();    else
pike.git/lib/modules/Tools.pmod/Standalone.pmod/rsqld.pike:385:    error("Failed to bind port "+port+".\n");    if(ip)    write("RSQL available on port %d on %s.\n", port, ip);    else    write("RSQL available on port %d.\n", port);    }   }      class Killer   { -  void destroy() +  protected void _destruct()    {    exit(0);    }   }      int main(int argc, array(string) argv)   {    int port;    string ip;    foreach(Getopt.find_all_options(argv, ({