From 659cc51b20ee0bf7bf68875df8ea1a0e0704ba42 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 19 Sep 2019 08:49:04 +0200 Subject: [PATCH] =?UTF-8?q?convertAttributes:=20set=20S=5FISUD=20bit=20fro?= =?UTF-8?q?m=20os.FileMode=E2=80=99s=20os.ModeSetuid=20(#58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conversions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conversions.go b/conversions.go index 66be34f8..26c27c12 100644 --- a/conversions.go +++ b/conversions.go @@ -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