TSE licenses - continuously asking for new one?

Florent Peterschmitt <[email protected]> Mon, 06 Jan 2014 17:04:45 +0100
Newsgroups gmane.network.rdesktop.devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============8820825291770903771==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="w70taqpIEP7PofV7rpXbIUgWBc51eGV2v"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--w70taqpIEP7PofV7rpXbIUgWBc51eGV2v
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I'm currently using rdesktop 1.8.1 built from sources and I saw
something strange:

rdesktop is continuously asking for the same license file.

Here is a strace output of a fresh start (no .cal in
~/.local/share/rdesktop/licenses/):


[admin@S777TXDTTEST ~]$ strace -o rdesktop.trace /usr/bin/rdesktop -x
0x86 -N -a 16 -P -z -k en-us S777SQ01 -u ''
Failed to negotiate protocol, retrying with plain RDP.
[admin@S777TXDTTEST ~]$ ls .^C
[admin@S777TXDTTEST ~]$ cat rdesktop.trace |grep lice
open("/home/admin/.local/share/rdesktop/licenses/09dcea473ad6f1ca5c33bc89=
df88aa42560b82b4.cal",
O_RDONLY|O_LARGEFILE) =3D -1 ENOENT (No such file or directory)
stat64("/home/admin/.local/share/rdesktop/licenses",
{st_mode=3DS_IFDIR|0700, st_size=3D4096, ...}) =3D 0
open("/home/admin/.local/share/rdesktop/licenses/ebbcc14692930d5d3f71925f=
6cc657ec02fa02cf.cal.new",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0600) =3D 5
rename("/home/admin/.local/share/rdesktop/licenses/ebbcc14692930d5d3f7192=
5f6cc657ec02fa02cf.cal.new",
"/home/admin/.local/share/rdesktop/licenses/ebbcc14692930d5d3f71925f6cc65=
7ec02fa02cf.cal")
=3D 0


What we see here is:

1. search for 09dcea473ad6f1ca5c33bc89df88aa42560b82b4.cal file
2. fail to open it (it doesn't exists)
3. write to another file something (a new TSE license?)
4. close this new file

If I re-launch rdesktop, then the same file (09...) is asked, not found
and another _new_ CAL file is created. At this point, I have 2 CAL files.=


If I mv the latest CAL to the wanted CAL (09...), here is what I have:

[admin@S777TXDTTEST ~]$ cd .local/share/rdesktop/licenses/
[admin@S777TXDTTEST licenses]$ ls
0f6f3932c9ecff5b253edabc71d017de013a1778.cal
ebbcc14692930d5d3f71925f6cc657ec02fa02cf.cal
[admin@S777TXDTTEST licenses]$ mv
0f6f3932c9ecff5b253edabc71d017de013a1778.cal
09dcea473ad6f1ca5c33bc89df88aa42560b82b4.cal
[admin@S777TXDTTEST licenses]$ strace -o rdesktop.trace
/usr/bin/rdesktop -x 0x86 -N -a 16 -P -z -k en-us S777SQ01 -u ''
Failed to negotiate protocol, retrying with plain RDP.
[admin@S777TXDTTEST licenses]$ cat rdesktop.trace |grep lice
open("/home/admin/.local/share/rdesktop/licenses/09dcea473ad6f1ca5c33bc89=
df88aa42560b82b4.cal",
O_RDONLY|O_LARGEFILE) =3D 5
[admin@S777TXDTTEST licenses]$ ls
09dcea473ad6f1ca5c33bc89df88aa42560b82b4.cal
ebbcc14692930d5d3f71925f6cc657ec02fa02cf.cal  rdesktop.trace

Then it's ok, the 09... CAL is reused (we see a read() and close() of
this file) and no extra CAL created.



Then, two questions :

* is this behaviour the expected one?
* does this behaviour can be responsible about an over consumption of
TSE licenses?

Thanks.


--=20
Florent Peterschmitt           | Please:
[email protected]        |  * Avoid HTML/RTF in E-mail.
http://florent.peterschmitt.fr |  * Send PDF for documents.
                               |  * Trim your quotations. Really.
Proudly powered by Open Source | Thank you :)


--w70taqpIEP7PofV7rpXbIUgWBc51eGV2v
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBAgAGBQJSytQiAAoJEFr01BkajbiBFpkQAI+RAqqz5tMj4+TSBy6JK/Is
G6MnBNuKjdankioWld2wFC8gWMeEjeC8Y7HZBhRu1i8m1ru7KJxyqAiQfVVwqrIP
S0hmXtIYIw0PJffpLAQjz00ugDxXmQ10BSvOrP3SFTTuj8f+9pY7E1r48fLcJCUD
J7L0KbXkJSQ6vxBu1FWeS8bNobIsXypRb2Zn1AdD6iSssFzlsqDIv/q21kzsKg+1
JBRAsT7/HhrFaoKrIN1/cL37ZnzB/38s8pJYLf65MddaK4IhyaQfx0gpDAVrlL+4
6UUv2JIuUddh35v6k8rcLvaDJQDVkkPOCvjzo8Ex/iSffIICXn+0me8+pABPsVKf
ZwpwLULF7NcESqt5JD4o6BGC2aC9aOXqxu/YMKboDb75MqXX7zqBBrxklSvZM/3x
qsMlrgYh7qgQ1F8mrXktVwy0ETnFqT2wNHdOHw+o84M3PtxPHSBYitg1UJ0ftvlD
E/hLwz4u7r71dfVb8oaN2hMkHwyYRLYGV1vvMvt1V/WgIheSjS1v+r33tKsNVTbb
qtZPA/TzJPHhn9+UDdzEP3huOIPsekLZvEbSRNCT8EaVzWfjpQal93ePENYzoQgc
Q+232w6evsj4nHShx6OkGxY7P7PqyFMRB+QPhStj+AqwXSVPHAhzAOq10OgEDiZK
mFLZGpCA+vQg0CTHTJiW
=uAUH
-----END PGP SIGNATURE-----

--w70taqpIEP7PofV7rpXbIUgWBc51eGV2v--


--===============8820825291770903771==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
--===============8820825291770903771==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
rdesktop-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdesktop-devel

--===============8820825291770903771==--