Skip to content

Commit b508d9d

Browse files
author
William Li
committed
Fix the naming
1 parent e4cce51 commit b508d9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,16 @@ private static bool TempHomeIsOnlyRootWritable(string path)
114114
return false;
115115
}
116116

117-
return IsOwnedByRoot(fileStat) && IsGroupWritable(fileStat) &&
118-
IsOtherUserWritable(fileStat);
117+
return IsOwnedByRoot(fileStat) && GroupCannotWrite(fileStat) &&
118+
OtherUserCannotWrite(fileStat);
119119
}
120120

121-
private static bool IsOtherUserWritable(StatInterop.FileStatus fileStat)
121+
private static bool OtherUserCannotWrite(StatInterop.FileStatus fileStat)
122122
{
123123
return (fileStat.Mode & (int) StatInterop.Permissions.S_IWOTH) == 0;
124124
}
125125

126-
private static bool IsGroupWritable(StatInterop.FileStatus fileStat)
126+
private static bool GroupCannotWrite(StatInterop.FileStatus fileStat)
127127
{
128128
return (fileStat.Mode & (int) StatInterop.Permissions.S_IWGRP) == 0;
129129
}

0 commit comments

Comments
 (0)