lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E53D145.7070207@linux.intel.com>
Date:	Tue, 23 Aug 2011 09:11:49 -0700
From:	Andi Kleen <ak@...ux.intel.com>
To:	Colin Walters <walters@...bum.org>
CC:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andi Kleen <andi@...stfloor.org>, akpm@...ux-foundation.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Add a personality to report 2.6.x version numbers


> A notable one is that Python now reports "linux3" from sys.platform();
> which in turn can break things that were checking sys.platform() ==
> "linux2".
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=664564
>
> Seems pretty clear to me though it's a bug in the apps that are using
> '==' instead of .startswith().

That's a good point. I googled for this pattern in google codesearch
and there are 10+ in the first two pages.

http://www.google.com/codesearch#search/&q=lang:^python$%20sys.platform%20linux2&p=1&type=cs

-andi


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ