convertAttributes: set S_ISUD bit from os.FileMode’s os.ModeSetuid (#58)

geesefs-0-30-9
Michael Stapelberg 2019-09-19 08:49:04 +02:00 committed by GitHub
parent cd3c1bb470
commit 659cc51b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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