apply patches

This commit is contained in:
openKylinBot 2022-05-14 03:49:02 +08:00
commit d64bc62a95
3 changed files with 16 additions and 1 deletions

View File

@ -186,6 +186,14 @@ def old_get_auth(sock, dname, host, dno):
except os.error:
pass
if not auth_data and host=='localhost':
# 127.0.0.1 counts as FamilyLocal, not FamilyInternet
# See Xtransutil.c:ConvertAddress.
# There might be more ways to spell 127.0.0.1 but
# 'localhost', yet this code fixes a the case of
# OpenSSH tunneling X.
return get_auth('unix:%d' % dno, 'unix', dno)
return auth_name, auth_data
get_auth = new_get_auth

View File

@ -3,7 +3,7 @@
include ../src/defs
python-xlib_toc.html: $(SRCS)
texi2html --output=. --split=node --menu $(TOPSRC)
makeinfo --output=. --html --split=node $(TOPSRC)
ln -sf python-xlib_toc.html index.html
clean:

View File

@ -39,6 +39,13 @@ except that this permission notice may be stated in a
translation approved by the Free Software Foundation.
@end ifinfo
@ifinfo
@dircategory Python
@direntry
* python-xlib: (python-xlib). Interface for Python to the X11 Protocol
@end direntry
@end ifinfo
@titlepage
@title The Python X Library
@author Peter Liljenberg