nametransform: Add implicit syscall.O_RDONLY flag.
This commit is contained in:
parent
927b3ce4cf
commit
61241b0588
|
@ -76,7 +76,7 @@ func ReadLongNameAt(dirfd int, cName string) (string, error) {
|
||||||
cName += LongNameSuffix
|
cName += LongNameSuffix
|
||||||
var f *os.File
|
var f *os.File
|
||||||
{
|
{
|
||||||
fd, err := syscallcompat.Openat(dirfd, cName, syscall.O_NOFOLLOW, 0)
|
fd, err := syscallcompat.Openat(dirfd, cName, syscall.O_RDONLY|syscall.O_NOFOLLOW, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue