Bug report and PATCH in ssh-agent in openssh 1.2.2

Nick Urbanik nicku at vtc.edu.hk
Tue Feb 8 21:10:40 EST 2000


Dear folks,

system: RH 6.1 Linux on a PIII
software: installed binaries resulting from rpm --rebuild
openssh-1.2.2-1.src.rpm, downloaded from
http://the.wiretapped.net/security/cryptography/ssh/OpenSSH/files/openssh-1.2.2-1.src.rpm

problem program: ssh-agent
problem description:

When execute
ssh-agent startx -- -bpp 32
ssh-agent does not pass the -bpp 32 to startx.


Why problem exists:
getopt() reorders args by default, but we don't want the ssh-agent args
to be interchanged with those of program ssh-agent is starting up.

Solution: a very simple patch:

-- cut here ---------------------------------------------------------
--- openssh-1.2.2/ssh-agent.c~ Mon Jan  3 20:41:05 2000
+++ openssh-1.2.2/ssh-agent.c Tue Feb  8 14:42:11 2000
@@ -515,7 +515,7 @@
    __progname);
   exit(1);
  }
- while ((ch = getopt(ac, av, "cks")) != -1) {
+ while ((ch = getopt(ac, av, "+cks")) != -1) {
   switch (ch) {
   case 'c':
    if (s_flag)
-- cut here ---------------------------------------------------------
I have built an rpm with this patch, but don't know where to upload it.

--
Nick Urbanik, Dept. of Electrical & Communications Engineering
Hong Kong Institute of Vocational Education (Tsing Yi)
email: nicku at vtc.edu.hk, nicku at iohk.com
Tel:   (852) 2436 8660, (825) 2436 8492   Fax: (852) 2436 8643
pgp ID: 7529555D fingerprint: 53 B6 6D 73 52 EE 1F EE EC F8 21 98 45 1C 23 7B








More information about the openssh-unix-dev mailing list