0,0 → 1,19 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
## terminate_on_connection_failure.dpatch by Magnus Holmgren <holmgren@debian.org> |
## |
## DP: Call exit() in lsh's default exception handler on EXC_IO_CONNECT; otherwise |
## DP: lsh won't terminate. |
|
@DPATCH@ |
diff -urNad trunk~/src/lsh.c trunk/src/lsh.c |
--- trunk~/src/lsh.c 2005-03-16 21:06:23.000000000 +0100 |
+++ trunk/src/lsh.c 2010-01-09 22:32:51.000000000 +0100 |
@@ -959,6 +959,8 @@ |
*self->status = EXIT_FAILURE; |
|
werror("%z, (errno = %i)\n", e->msg, exc->error); |
+ if (e->type == EXC_IO_CONNECT) |
+ exit(*self->status); |
} |
else |
switch(e->type) |
Property changes: |
Added: svn:executable |
## -0,0 +1 ## |
+* |
\ No newline at end of property |
Index: debian/changelog |
=================================================================== |
--- debian/changelog (revision 69) |
+++ debian/changelog (revision 71) |
@@ -1,3 +1,10 @@ |
+lsh-utils (2.0.4-dfsg-7) unstable; urgency=low |
+ |
+ * terminate_on_connection_failure.dpatch (new): Make sure that lsh exits |
+ if it fails to connect to the remote host (Closes: #485812). |
+ |
+ -- Magnus Holmgren <holmgren@debian.org> Sun, 10 Jan 2010 13:36:31 +0100 |
+ |
lsh-utils (2.0.4-dfsg-6) unstable; urgency=low |
* Change libreadline build dependency to just libreadline-dev |