Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
20698b4e
R
runtime
项目概览
dotNET Platform
/
runtime
大约 1 年 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
20698b4e
编写于
6月 23, 2022
作者:
T
Tom Deseyn
提交者:
GitHub
6月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UnixFileMode: address remaining feedback. (#71188)
上级
b1221494
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
5 addition
and
11 deletion
+5
-11
src/libraries/System.Formats.Tar/src/System.Formats.Tar.csproj
...ibraries/System.Formats.Tar/src/System.Formats.Tar.csproj
+0
-1
src/libraries/System.IO.Compression.ZipFile/src/System.IO.Compression.ZipFile.csproj
...pression.ZipFile/src/System.IO.Compression.ZipFile.csproj
+0
-2
src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFileExtensions.ZipArchiveEntry.Extract.Unix.cs
...ression/ZipFileExtensions.ZipArchiveEntry.Extract.Unix.cs
+4
-2
src/libraries/System.IO.Compression.ZipFile/tests/System.IO.Compression.ZipFile.Tests.csproj
....ZipFile/tests/System.IO.Compression.ZipFile.Tests.csproj
+0
-1
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs
...aries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs
+1
-1
src/libraries/System.Security.Cryptography.X509Certificates/tests/System.Security.Cryptography.X509Certificates.Tests.csproj
...ystem.Security.Cryptography.X509Certificates.Tests.csproj
+0
-2
src/libraries/System.Security.Cryptography/src/System.Security.Cryptography.csproj
...rity.Cryptography/src/System.Security.Cryptography.csproj
+0
-2
未找到文件。
src/libraries/System.Formats.Tar/src/System.Formats.Tar.csproj
浏览文件 @
20698b4e
...
...
@@ -57,7 +57,6 @@
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs" Link="Common\Interop\Unix\System.Native\Interop.Errors.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.DeviceFiles.cs" Link="Common\Interop\Unix\System.Native\Interop.DeviceFiles.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FChMod.cs" Link="Common\Interop\Unix\System.Native\Interop.FChMod.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetEUid.cs" Link="Common\Interop\Unix\System.Native\Interop.GetEUid.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetPwUid.cs" Link="Common\Interop\Unix\System.Native\Interop.GetPwUid.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetGroupName.cs" Link="Common\Interop\Unix\System.Native\Interop.GetGroupName.cs" />
...
...
src/libraries/System.IO.Compression.ZipFile/src/System.IO.Compression.ZipFile.csproj
浏览文件 @
20698b4e
...
...
@@ -31,8 +31,6 @@
Link="Common\Interop\Unix\Interop.Libraries.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs"
Link="Common\Interop\Unix\System.Native\Interop.Errors.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FChMod.cs"
Link="Common\Interop\Unix\System.Native\Interop.FChMod.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.cs"
Link="Common\Interop\Unix\System.Native\Interop.Stat.cs" />
<Compile Include="$(CommonPath)System\IO\Archiving.Utils.Unix.cs"
...
...
src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFileExtensions.ZipArchiveEntry.Extract.Unix.cs
浏览文件 @
20698b4e
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using
System.Diagnostics
;
namespace
System.IO.Compression
{
public
static
partial
class
ZipFileExtensions
{
static
partial
void
ExtractExternalAttributes
(
FileStream
fs
,
ZipArchiveEntry
entry
)
{
Debug
.
Assert
(!
OperatingSystem
.
IsWindows
());
// Only extract USR, GRP, and OTH file permissions, and ignore
// S_ISUID, S_ISGID, and S_ISVTX bits. This matches unzip's default behavior.
// It is off by default because of this comment:
...
...
@@ -22,9 +26,7 @@ public static partial class ZipFileExtensions
// include the permissions, or was made on Windows.
if
(
permissions
!=
0
)
{
#pragma warning disable CA1416 // Validate platform compatibility
File
.
SetUnixFileMode
(
fs
.
SafeFileHandle
,
(
UnixFileMode
)
permissions
);
#pragma warning restore CA1416
}
}
}
...
...
src/libraries/System.IO.Compression.ZipFile/tests/System.IO.Compression.ZipFile.Tests.csproj
浏览文件 @
20698b4e
...
...
@@ -39,7 +39,6 @@
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Unix' or '$(TargetPlatformIdentifier)' == 'Browser'">
<Compile Include="ZipFile.Unix.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Interop\Unix\Interop.Libraries.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ChMod.cs" Link="Interop\Unix\System.Native\Interop.ChMod.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.cs" Link="Interop\Unix\System.Native\Interop.Stat.cs" />
</ItemGroup>
<ItemGroup>
...
...
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs
浏览文件 @
20698b4e
...
...
@@ -100,7 +100,7 @@ private static string[] CreateFiles(string folderPath, string[] testPermissions)
string
filename
=
Path
.
Combine
(
folderPath
,
$"
{
permissions
}
.txt"
);
File
.
WriteAllText
(
filename
,
"contents"
);
Assert
.
Equal
(
0
,
Interop
.
Sys
.
ChMod
(
filename
,
Convert
.
ToInt32
(
permissions
,
8
)
));
File
.
SetUnixFileMode
(
filename
,
(
UnixFileMode
)
Convert
.
ToInt32
(
permissions
,
8
));
// In some environments, the file mode may be modified by the OS.
// See the Rationale section of https://linux.die.net/man/3/chmod.
...
...
src/libraries/System.Security.Cryptography.X509Certificates/tests/System.Security.Cryptography.X509Certificates.Tests.csproj
浏览文件 @
20698b4e
...
...
@@ -91,8 +91,6 @@
<ItemGroup Condition="'$(TargetPlatformIdentifier)' != 'windows' and '$(TargetPlatformIdentifier)' != 'Browser' and '$(UseAndroidCrypto)' != 'true' and '$(UseAppleCrypto)' != 'true'">
<Compile Include="X509FilesystemTests.Unix.cs" />
<Compile Include="X509StoreTests.Unix.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ChMod.cs"
Link="Common\Interop\Unix\System.Native\Interop.ChMod.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs"
Link="Common\Interop\Unix\Interop.Libraries.cs" />
<Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs"
...
...
src/libraries/System.Security.Cryptography/src/System.Security.Cryptography.csproj
浏览文件 @
20698b4e
...
...
@@ -593,8 +593,6 @@
<ItemGroup Condition="'$(UseOpenSsl)' == 'true'">
<Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs"
Link="Common\Interop\Unix\Interop.Errors.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FChMod.cs"
Link="Common\Interop\Unix\System.Native\Interop.FChMod.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetEUid.cs"
Link="Common\Interop\Unix\System.Native\Interop.GetEUid.cs" />
<Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetPwUid.cs"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录