Tim Mooney <[EMAIL PROTECTED]> wrote:
: I've recently added a number of SGIs to the machines I administer, and I'm
: compiling 1.2.26 on them.  Since project accounting hasn't been set up, I
: can't get logged in using it.  Luckily I have a 1.2.25 sshd binary available
: for IRIX64, but I want to get to 1.2.26.

        Here is the patch, I just spent several
hours this evening figuring out the problem, maybe
I should have looked for this newsgroup first:

--- sshd_bak.c  Fri Jan 15 22:10:24 1999
+++ sshd.c      Fri Jan 15 22:10:46 1999
@@ -3673,7 +3673,7 @@
 */
 int sgi_project_setup(char *username)
 {
-  int err;
+  int err=0;
   int naccts;
   projid_t pbuf;

-- end --

        Very simple solution.  The error variable isn't
initalized, so when the setpid() function is skipped
(since you don't have projects running) the error
check is incorrect.

Josh

-- 
--  Joshua Weage   http://weage.resnet.gatech.edu/  --
--  Mechanical Engineering Graduate Student         --
--  Georgia Institute of Technology                 --
--  Try Linux, the free OS http://www.linux.org/    --

Reply via email to