OpenSSH
[Top] [All Lists]

RE: Patch to fix the 255 status code problem

To: <dkg-openssh.com@fifthhorseman.net>
Subject: RE: Patch to fix the 255 status code problem
From: <tim.mann@bt.com>
Date: Wed, 31 Jan 2007 16:48:39 -0000
Cc: openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
Thread-index: AcdFVms/WMHknhe9S6+D7CvhBf5aYQAADffg
Thread-topic: Patch to fix the 255 status code problem
Hi,

Thanks for your reply.

I'm having problems with  a dataguard deployment using Oracle 8.1.7.4. I
found an article on Metalink which seem to explain the problem I was
having. It states that with openssh (on Solaris) it returns status code
255 for a successful execution and this is interpreted by dataguard as a
connection failure. 

When I run ssh on the command line everything is fine.

The other solution the article states is to use SSH1 instead.

Regards,

Tim

-----Original Message-----
From: Daniel Kahn Gillmor [mailto:dkg-openssh.com@fifthhorseman.net] 
Sent: 31 January 2007 16:40
To: Mann,TJ,Tim,XWK3 R
Cc: openssh-unix-dev@mindrot.org
Subject: Re: Patch to fix the 255 status code problem

At 2007-01-31 15:53, tim.mann@bt.com said:

> Currently using openssh-4.5p1 on Solaris 8 in conjunction with Oracle 
> 8i dataguard. Is there a patch available to prevent ssh returning 
> status code 255 for a successful execution of a remote 
> connection/command.

I believe it should already do what you need.  the man page [0] says:

  ssh exits with the exit status of the remote command or with 255 if
  an error occurred.

Can you provide more details about the problem you're having?  The
behavior it sounds like you want is already present on my setup here
(openssh 4.2p1 and 3.8.1p1 on linux 2.6).  My prompt shows the return
value of the previous command:

[0 dkg@baboon ~]$ ssh gorilla true
[0 dkg@baboon ~]$ ssh gorilla false
[1 dkg@baboon ~]$ 

hth,

        --dkg

[0] http://www.openbsd.org/cgi-bin/man.cgi?query=ssh

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>