Skip to content

Commit

Permalink
convertAttributes: set S_ISUD bit from os.FileMode’s os.ModeSetuid (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg authored Sep 19, 2019
1 parent cd3c1bb commit 659cc51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,9 @@ func convertAttributes(
case in.Mode&os.ModeSocket != 0:
out.Mode |= syscall.S_IFSOCK
}
if in.Mode&os.ModeSetuid != 0 {
out.Mode |= syscall.S_ISUID
}
}

// Convert an absolute cache expiration time to a relative time from now for
Expand Down

0 comments on commit 659cc51

Please sign in to comment.