Ai
25 Star 1 Fork 14

src-openEuler/python2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-linux_distribution-skip-link-file.patch 474 Bytes
一键复制 编辑 原始数据 按行查看 历史
syyhao 提交于 2019-12-25 18:38 +08:00 . fix some CVE and update spec
diff -uNrp a/Lib/platform.py b/Lib/platform.py
--- a/Lib/platform.py 2019-12-21 15:00:32.420000000 +0800
+++ b/Lib/platform.py 2019-12-21 15:07:14.292000000 +0800
@@ -353,6 +353,8 @@ def linux_distribution(distname='', vers
return distname,version,id
etc.sort()
for file in etc:
+ if os.path.islink('/etc/'+file):
+ continue
m = _release_filename.match(file)
if m is not None:
_distname,dummy = m.groups()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python2.git
git@gitee.com:src-openeuler/python2.git
src-openeuler
python2
python2
master

搜索帮助