On Tue, 19 Jan 1999, Randolph J. Herber wrote:
> The following header lines retained to affect attribution:
> |Date: Tue, 19 Jan 1999 10:23:22 +0100 (MET)
> |From: Eivind Gjelseth <[EMAIL PROTECTED]>
> |Subject: Re: problem with ssh1.2.26 on IRIX 6.5
> |To: "Randolph J. Herber" <[EMAIL PROTECTED]>
> |Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
>
> ...
>
> |The code has been tested and it works! Case closed!
>
> Is this the reason for the ``ssh supporters group''
> stubborn refusal to consider using the proper
> solution which has been pointed out to you many times.
>
> newarraysess();
> setprid(getdfltprojuser(u_name));
>
> Why have a large, complex, error prone (proved by
> the recent problem with an unitialized variable)
> function procedure when that procedure and the
> call to it can be placed by the proper two lines
> of code?
>
> Admittedly we all make errors sometimes, including I.
> Why do not you admit yours and use and recommend
> the proper solution?
Then please read my mails on more time!!! I did somthing wrong! and the
problem was becase the variable was unitialized! And the code I refer to
is YOUR patch whitch was included in some of my mails.
The mail was in clompete frustration to the ``ssh supporters group''
stubborn refusal to consider using the proper solution which has been
pointed out many times.
Included is the patch, (to fix my erlyer patch), one more time.
Please make a new wersion. ssh-1.2.26 for IRIX is broken or at least put
the patch on web.
please -- please -- please ...
------------------------------ CUT HERE --------------------------------
Common subdirectories: ssh-1.2.26/gmp-2.0.2-ssh-2 and ssh-1.2.26.1/gmp-2.0.2-ssh-2
diff -u ssh-1.2.26/sshd.c ssh-1.2.26.1/sshd.c
--- ssh-1.2.26/sshd.c Wed Jul 8 18:40:38 1998
+++ ssh-1.2.26.1/sshd.c Fri Jan 15 00:21:22 1999
@@ -3673,17 +3673,8 @@
*/
int sgi_project_setup(char *username)
{
- int err;
- int naccts;
- projid_t pbuf;
+ int err = 0;
- /* Find default project for a particular user */
- if ((naccts = getprojuser(username, &pbuf, 1)) < 0)
- {
- debug("System call getprojuser failed");
- return(-1);
- }
-
/* Create a new array session and moves the current
process from its original array session to the new one. */
if (newarraysess() < 0)
@@ -3694,8 +3685,7 @@
/* Change the project ID for the array session. */
/* Must be changed after the new array session has been created. */
- if (naccts)
- err = setprid(pbuf.proj_id);
+ err = setprid(getdfltprojuser(username));
if (err != 0)
{
Common subdirectories: ssh-1.2.26/zlib-1.0.4 and ssh-1.2.26.1/zlib-1.0.4
------------------------------ CUT HERE --------------------------------
> ...
>
> |Hilsen,
> |- eivind
>
> |Phone: +47 555 84163 | Para//ab, Dept. of Informatics
> |Fax: +47 555 84199 | University of Bergen
> |E-mail: [EMAIL PROTECTED] | Thormoehlens gate 55
> | [EMAIL PROTECTED] | N-5020 Bergen, NORWAY
>
> Randolph J. Herber, [EMAIL PROTECTED], +1 630 840 2966, CD/CDFTF PK-149F,
> Mail Stop 318, Fermilab, Kirk & Pine Rds., PO Box 500, Batavia, IL 60510-0500,
> USA. (Speaking for myself and not for US, US DOE, FNAL nor URA.) (Product,
> trade, or service marks herein belong to their respective owners.)
>
Hilsen,
- eivind
--
Phone: +47 555 84163 | Para//ab, Dept. of Informatics
Fax: +47 555 84199 | University of Bergen
E-mail: [EMAIL PROTECTED] | Thormoehlens gate 55
[EMAIL PROTECTED] | N-5020 Bergen, NORWAY
Common subdirectories: ssh-1.2.26/gmp-2.0.2-ssh-2 and ssh-1.2.26.1/gmp-2.0.2-ssh-2
diff -u ssh-1.2.26/sshd.c ssh-1.2.26.1/sshd.c
--- ssh-1.2.26/sshd.c Wed Jul 8 18:40:38 1998
+++ ssh-1.2.26.1/sshd.c Fri Jan 15 00:21:22 1999
@@ -3673,17 +3673,8 @@
*/
int sgi_project_setup(char *username)
{
- int err;
- int naccts;
- projid_t pbuf;
+ int err = 0;
- /* Find default project for a particular user */
- if ((naccts = getprojuser(username, &pbuf, 1)) < 0)
- {
- debug("System call getprojuser failed");
- return(-1);
- }
-
/* Create a new array session and moves the current
process from its original array session to the new one. */
if (newarraysess() < 0)
@@ -3694,8 +3685,7 @@
/* Change the project ID for the array session. */
/* Must be changed after the new array session has been created. */
- if (naccts)
- err = setprid(pbuf.proj_id);
+ err = setprid(getdfltprojuser(username));
if (err != 0)
{
Common subdirectories: ssh-1.2.26/zlib-1.0.4 and ssh-1.2.26.1/zlib-1.0.4