Skip to content

Commit

Permalink
multiple fixes (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagajjal authored and manojampalam committed May 9, 2017
1 parent 7d929c2 commit 0fe590b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion contrib/win32/openssh/AppveyorHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ function Publish-Artifact
[System.Collections.ArrayList] $artifacts = [System.Collections.ArrayList]::new()

# Get the build.log file for each build configuration
Add-BuildLog -artifacts $artifacts -buildLog (Get-BuildLogFile -root $repoRoot.FullName)
Add-BuildLog -artifacts $artifacts -buildLog (Get-BuildLogFile -root $repoRoot.FullName -Configuration Release -NativeHostArch x64)
Add-BuildLog -artifacts $artifacts -buildLog (Get-BuildLogFile -root $repoRoot.FullName -Configuration Debug -NativeHostArch x86)

if($Global:OpenSSHTestInfo)
{
Expand Down
2 changes: 1 addition & 1 deletion contrib/win32/openssh/libssh.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
<ClInclude Include="$(OpenSSH-Src-Path)crypto-wrap.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include=$(OpenSSH-Src-Path)sshfileperm.h">
<ClInclude Include="$(OpenSSH-Src-Path)sshfileperm.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion contrib/win32/win32compat/w32-sshfileperm.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ check_secure_file_permission(const char *name, struct passwd * pw)
case ACCESS_DENIED_ACE_TYPE: {
PACCESS_DENIED_ACE pDeniedAce = (PACCESS_DENIED_ACE)current_ace;
current_trustee_sid = &(pDeniedAce->SidStart);
if(pDeniedAce->Mask & (FILE_GENERIC_READ & ~(SYNCHRONIZE | READ_CONTROL)) != 0) {
if((pDeniedAce->Mask & (FILE_GENERIC_READ & ~(SYNCHRONIZE | READ_CONTROL))) != 0) {
if (EqualSid(current_trustee_sid, owner_sid)){
debug3("Bad permission on %s. The owner of the file should at least have read permission.", name);
ret = -1;
Expand Down

0 comments on commit 0fe590b

Please sign in to comment.