Репозитории ALT
S: | 1.1.2-alt1 |
5.1: | 1.0.4-alt2 |
4.1: | 1.0.3-alt1 |
4.0: | 1.0.2-alt2 |
Группа :: Система/X11
Пакет: xauth
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: xauth-1.0.10-alt1.patch
Скачать
Скачать
.gitignore | 79 --------------------------------------------------------------
gethost.c | 4 ++++
parsedpy.c | 4 ++++
3 files changed, 8 insertions(+), 79 deletions(-)
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 879c075..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,79 +0,0 @@
-#
-# X.Org module default exclusion patterns
-# The next section if for module specific patterns
-#
-# Do not edit the following section
-# GNU Build System (Autotools)
-aclocal.m4
-autom4te.cache/
-autoscan.log
-ChangeLog
-compile
-config.guess
-config.h
-config.h.in
-config.log
-config-ml.in
-config.py
-config.status
-config.status.lineno
-config.sub
-configure
-configure.scan
-depcomp
-.deps/
-INSTALL
-install-sh
-.libs/
-libtool
-libtool.m4
-ltmain.sh
-lt~obsolete.m4
-ltoptions.m4
-ltsugar.m4
-ltversion.m4
-Makefile
-Makefile.in
-mdate-sh
-missing
-mkinstalldirs
-*.pc
-py-compile
-stamp-h?
-symlink-tree
-texinfo.tex
-ylwrap
-
-# Do not edit the following section
-# Edit Compile Debug Document Distribute
-*~
-*.[0-9]
-*.[0-9]x
-*.bak
-*.bin
-core
-*.dll
-*.exe
-*-ISO*.bdf
-*-JIS*.bdf
-*-KOI8*.bdf
-*.kld
-*.ko
-*.ko.cmd
-*.lai
-*.l[oa]
-*.[oa]
-*.obj
-*.patch
-*.so
-*.pcf.gz
-*.pdb
-*.tar.bz2
-*.tar.gz
-#
-# Add & Override patterns for xauth
-#
-# Edit the following section as needed
-# For example, !report.pc overrides *.pc. See 'man gitignore'
-#
-xauth
diff --git a/gethost.c b/gethost.c
index 8cb58c5..598ac48 100644
--- a/gethost.c
+++ b/gethost.c
@@ -180,6 +180,10 @@ struct addrlist *get_address_info (
* information to be copied and set len to the number of bytes.
*/
switch (family) {
+ case FamilyWild: /* was :0 */
+ src = "\xff\xff";
+ len = strlen(src);
+ break;
case FamilyLocal: /* hostname/unix:0 */
/* handle unix:0 and :0 specially */
if (prefix == 0 && (strncmp (fulldpyname, "unix:", 5) == 0 ||
diff --git a/parsedpy.c b/parsedpy.c
index 97988d3..6c98339 100644
--- a/parsedpy.c
+++ b/parsedpy.c
@@ -141,6 +141,10 @@ parse_displayname (const char *displayname,
family = FamilyInternet;
}
#endif
+ } else if (len == 1 && *displayname == '*') {
+ /* ALT: wildcard cookie */
+ host = copystring("*", 1);
+ family = FamilyWild;
} else if (!dnet && (*displayname == '[') && (*(ptr - 1) == ']')) {
/* Allow RFC2732-like [<IPv6NumericAddress>]:display syntax */
family = FamilyInternet6;