Branch: Tag:

1999-08-20

1999-08-20 05:06:33 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix? for NT

Rev: lib/modules/Protocols.pmod/LPD.pmod:1.4
Rev: lib/modules/Protocols.pmod/X.pmod/Auth.pmod:1.5

3:   // This is a module for pike.   // 3 July 1998 <hww3@riverweb.com> Bill Welliver   // - // $Id: LPD.pmod,v 1.3 1998/07/03 20:30:19 grubba Exp $ + // $Id: LPD.pmod,v 1.4 1999/08/20 05:01:58 hubbe Exp $   //      class client {
73:    // werror("sent send data command\n");    string control="";    control+="H"+gethostname()+"\n"; -  control+="P"+(getpwuid(getuid())[0]||"nobody"); + #if constant(getuid) && constant(getpwuid) +  control+="P"+(getpwuid(getuid())[0]||"nobody")+"\n"; + #else +  /* Should there be a P-1 here? /Hubbe */ + #endif    control+=(jobtype||"l")+"dfA"+ sprintf("%3d%s", jobnum, gethostname())+"\n";    if(jobname)    control+="J" + jobname + "\n";
103:    if(!conn->connect(host, port))    return 0;    + #if constant(getpwuid) && constant(getuid)    string agent=(getpwuid(getuid())[0]||"nobody"); -  + #else +  string agent="nobody"; + #endif       if(job)    conn->write(sprintf("%c%s %s %d\n", 05, queue, agent, job));