This file is indexed.

/usr/share/doc/python-jabber/patches/unused/AlexeyNezhdanov/whole_ip_v0.3.1.diff is in python-jabber 0.5.0-1.6.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
diff -Nur deb/xmlstream.py whole_ip/xmlstream.py
--- deb/xmlstream.py	Mon Oct 28 19:38:03 2002
+++ whole_ip/xmlstream.py	Tue Oct 29 08:35:21 2002
@@ -32,7 +32,7 @@
 
 import xmllib, time, sys, re, site, socket
 from select import select
-from string import split,find,replace,join
+from string import split,find,replace,join,strip
 import xml.parsers.expat
 
 VERSION = 0.2
@@ -370,39 +370,17 @@
         data_in = u''
         self._setParser()
 
-        if self._connection == TCP:
-            data_in = data_in + \
-              unicode(self._sock.recv(BLOCK_SIZE),'utf-8').encode(ENCODING,
-                                                            'replace')
-            while data_in:
-                data = data + data_in
-                if len(data_in) != BLOCK_SIZE:
-                    break
-                data_in = unicode(self._sock.recv(BLOCK_SIZE),'utf-8').encode(
-                    ENCODING, 'replace')
-
-        if self._connection == TCP_SSL:
-            data_in = data_in + \
-              unicode(self._sslObj.recv(BLOCK_SIZE),'utf-8').encode(ENCODING,'replace')
-            while data_in:
-                data = data + data_in
-                if len(data_in) != BLOCK_SIZE:
-                    break
-                data_in = unicode(self._sslObj.recv(BLOCK_SIZE),'utf-8').encode(ENCODING, 'replace')
-
-        elif self._connection == STDIO:
-            ## Hope this dont buffer !
-            data_in = data_in + unicode(sys.stdin.read(1024),'utf-8').encode(
-                    ENCODING, 'replace')
-            while data_in:
-                data = data + data_in
-                if len(data_in) != 1024:
-                    break
-                data_in = unicode(sys.stdin.read(1024),'utf-8').encode(
-                    ENCODING, 'replace')
-        else:
-            pass # should never get here
-            
+	if self._connection == TCP: readfunc=self._sock.recv
+	elif self._connection == TCP_SSL: readfunc=self._sslObj.recv
+	elif self._connection == STDIO: readfunc=sys.stdin.read ## Hope this dont buffer !
+	else: return '' # should never get here
+	data_in=readfunc(BLOCK_SIZE)
+	data=data_in
+	while len(data_in)==BLOCK_SIZE or strip(data)[-1:]<>'>':
+	    data_in=readfunc(BLOCK_SIZE)
+	    data+=data_in
+	data=unicode(data,'utf-8').encode(ENCODING,'replace')
+
         self.DEBUG("got data %s" % data )
         self.log(data, 'RECV:')
         self._parser.Parse(data)