File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,16 +114,16 @@ private static bool TempHomeIsOnlyRootWritable(string path)
114
114
return false ;
115
115
}
116
116
117
- return IsOwnedByRoot ( fileStat ) && IsGroupWritable ( fileStat ) &&
118
- IsOtherUserWritable ( fileStat ) ;
117
+ return IsOwnedByRoot ( fileStat ) && GroupCannotWrite ( fileStat ) &&
118
+ OtherUserCannotWrite ( fileStat ) ;
119
119
}
120
120
121
- private static bool IsOtherUserWritable ( StatInterop . FileStatus fileStat )
121
+ private static bool OtherUserCannotWrite ( StatInterop . FileStatus fileStat )
122
122
{
123
123
return ( fileStat . Mode & ( int ) StatInterop . Permissions . S_IWOTH ) == 0 ;
124
124
}
125
125
126
- private static bool IsGroupWritable ( StatInterop . FileStatus fileStat )
126
+ private static bool GroupCannotWrite ( StatInterop . FileStatus fileStat )
127
127
{
128
128
return ( fileStat . Mode & ( int ) StatInterop . Permissions . S_IWGRP ) == 0 ;
129
129
}
You can’t perform that action at this time.
0 commit comments