~bennabiy/+junk/python-xlib

« back to all changes in this revision

Viewing changes to debian/patches/fix-ssh-tunnel-auth

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura, Ramkumar Ramachandra, Andrew Shadura
  • Date: 2015-08-13 08:14:19 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20150813081419-hdefinnghp2iydkx
Tags: 0.14+20091101-3
[ Ramkumar Ramachandra ]
* Remove useless debugging output (Closes: #565996)

[ Andrew Shadura ]
* Switch to 3.0 (quilt) format.
* Rename patches.
* Use debhelper 9 in its short form.
* Use pybuild.
* Bump Standards-Version.
* Don't build or install PostScript documentation and info files.
* Use system-provided texi2html instead of a shipped version
  (Closes: #795057).
* Update debian/copyright (Closes: #795057).
* Don't install Makefile or texi2html with the documentation.
* Set executable bit for examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: trunk/Xlib/support/unix_connect.py
2
 
===================================================================
3
 
--- trunk.orig/Xlib/support/unix_connect.py     2009-11-05 06:06:09.000000000 -0500
4
 
+++ trunk/Xlib/support/unix_connect.py  2009-11-05 06:06:23.000000000 -0500
5
 
@@ -161,6 +161,14 @@
6
 
     except os.error:
7
 
         pass
8
 
 
9
 
+    if not auth_data and host=='localhost':
10
 
+       # 127.0.0.1 counts as FamilyLocal, not FamilyInternet
11
 
+       # See Xtransutil.c:ConvertAddress.
12
 
+       # There might be more ways to spell 127.0.0.1 but
13
 
+       # 'localhost', yet this code fixes a the case of
14
 
+       # OpenSSH tunneling X.
15
 
+       return get_auth('unix:%d' % dno, 'unix', dno)
16
 
+
17
 
     return auth_name, auth_data
18
 
 
19
 
 get_auth = new_get_auth