mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 10:24:40 +01:00
Properly check for the sticky bit
This commit is contained in:
parent
a88076d06f
commit
363d44919f
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ func maybeWritableByOtherUsers(p string) (bool, string, error) {
|
||||||
return false, p, err
|
return false, p, err
|
||||||
}
|
}
|
||||||
mode := st.Mode()
|
mode := st.Mode()
|
||||||
if mode&2 == 2 && !(st.IsDir() && mode&01000 == 01000) {
|
if mode.Perm()&2 != 0 && !(st.IsDir() && mode&os.ModeSticky == os.ModeSticky) {
|
||||||
return true, p, nil
|
return true, p, nil
|
||||||
}
|
}
|
||||||
p = path.Dir(p)
|
p = path.Dir(p)
|
||||||
|
|
Loading…
Add table
Reference in a new issue